summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
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)