summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-21 10:01:27 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-21 10:01:27 +0000
commitbbde600decc1970f1507828fce5ba22c0948519b (patch)
tree03f9dd5aadd4c8f938d554b4a02d8fbae405dcac /include
parent738cd691cc0d40e97db910ae0453014b6c703efc (diff)
downloadzabbix-bbde600decc1970f1507828fce5ba22c0948519b.tar.gz
zabbix-bbde600decc1970f1507828fce5ba22c0948519b.tar.xz
zabbix-bbde600decc1970f1507828fce5ba22c0948519b.zip
- fixed printing of stdout/stderr (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3622 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include')
-rw-r--r--include/common.h9
-rw-r--r--include/threads.h2
2 files changed, 9 insertions, 2 deletions
diff --git a/include/common.h b/include/common.h
index 231063d5..fe47e474 100644
--- a/include/common.h
+++ b/include/common.h
@@ -20,8 +20,13 @@
#ifndef ZABBIX_COMMON_H
#define ZABBIX_COMMON_H
-#define SDI(msg) fprintf(stderr, "[%6i]DEBUG INFO: %s\n", getpid(), msg); fflush(stderr);
-#define SDI2(msg,p1) fprintf(stderr, "[%6i]DEBUG INFO: " msg "\n", getpid(), p1); fflush(stderr);
+#if defined(_WINDOWS)
+# define SDI(msg) fprintf(stderr, "DEBUG INFO: %s\n", msg); fflush(stderr);
+# define SDI2(msg,p1) fprintf(stderr, "DEBUG INFO: " msg "\n", p1); fflush(stderr);
+#else
+# define SDI(msg) fprintf(stderr, "[%6i]DEBUG INFO: %s\n", getpid(), msg); fflush(stderr);
+# define SDI2(msg,p1) fprintf(stderr, "[%6i]DEBUG INFO: " msg "\n", getpid(), p1); fflush(stderr);
+#endif
#include "sysinc.h"
diff --git a/include/threads.h b/include/threads.h
index 3883f7d7..982382a0 100644
--- a/include/threads.h
+++ b/include/threads.h
@@ -41,6 +41,8 @@
#define zbx_sleep(sec) Sleep(((DWORD)(sec))*((DWORD)1000))
#else /* not _WINDOWS */
+
+ int zbx_fork();
#define ZBX_THREAD_ERROR (-1)