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