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