Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include/threads.h')
-rw-r--r--include/threads.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/threads.h b/include/threads.h
index 82d4019b371..7a65b3d0133 100644
--- a/include/threads.h
+++ b/include/threads.h
@@ -24,10 +24,10 @@
#if defined(_WINDOWS)
- #define ZBX_THREAD_ERROR 0
+ #define ZBX_THREAD_ERROR 0
- #define ZBX_THREAD_HANDLE HANDLE
- #define ZBX_THREAD_HANDLE_NULL NULL
+ #define ZBX_THREAD_HANDLE HANDLE
+ #define ZBX_THREAD_HANDLE_NULL NULL
#define ZBX_THREAD_ENTRY_POINTER(pointer_name) \
unsigned (__stdcall *pointer_name)(void *)
@@ -46,11 +46,12 @@
#else /* not _WINDOWS */
int zbx_fork();
+ int zbx_child_fork();
- #define ZBX_THREAD_ERROR (-1)
+ #define ZBX_THREAD_ERROR -1
- #define ZBX_THREAD_HANDLE pid_t
- #define ZBX_THREAD_HANDLE_NULL 0
+ #define ZBX_THREAD_HANDLE pid_t
+ #define ZBX_THREAD_HANDLE_NULL 0
#define ZBX_THREAD_ENTRY_POINTER(pointer_name) \
unsigned (* pointer_name)(void *)