1 1.2.4.2 snj /* $NetBSD: ntp_workimpl.h,v 1.2.4.2 2014/12/25 02:28:04 snj Exp $ */ 2 1.2.4.2 snj 3 1.2.4.2 snj /* 4 1.2.4.2 snj * ntp_workimpl.h - selects worker child implementation 5 1.2.4.2 snj */ 6 1.2.4.2 snj #ifndef NTP_WORKIMPL_H 7 1.2.4.2 snj #define NTP_WORKIMPL_H 8 1.2.4.2 snj 9 1.2.4.2 snj /* 10 1.2.4.2 snj * Some systems do not support fork() and don't have an alternate 11 1.2.4.2 snj * threads implementation of ntp_intres. Such systems are limited 12 1.2.4.2 snj * to using numeric IP addresses. 13 1.2.4.2 snj */ 14 1.2.4.2 snj #if defined(SYS_WINNT) 15 1.2.4.2 snj # define WORK_THREAD 16 1.2.4.2 snj #elif defined(ISC_PLATFORM_USETHREADS) && \ 17 1.2.4.2 snj defined(HAVE_SEM_TIMEDWAIT) && \ 18 1.2.4.2 snj (defined(HAVE_GETCLOCK) || defined(HAVE_CLOCK_GETTIME)) 19 1.2.4.2 snj # define WORK_THREAD 20 1.2.4.2 snj # define WORK_PIPE 21 1.2.4.2 snj #elif defined(VMS) || defined(SYS_VXWORKS) 22 1.2.4.2 snj /* empty */ 23 1.2.4.2 snj #elif defined(HAVE_WORKING_FORK) 24 1.2.4.2 snj # define WORK_FORK 25 1.2.4.2 snj # define WORK_PIPE 26 1.2.4.2 snj #endif 27 1.2.4.2 snj 28 1.2.4.2 snj #if defined(WORK_FORK) || defined(WORK_THREAD) 29 1.2.4.2 snj # define WORKER 30 1.2.4.2 snj #endif 31 1.2.4.2 snj 32 1.2.4.2 snj #endif /* !NTP_WORKIMPL_H */ 33