From 2a25cee78ab1d37e7d2bc40ae675646974d99f56 Mon Sep 17 00:00:00 2001 From: delphij Date: Wed, 15 Jul 2015 19:21:26 +0000 Subject: MFC r280849,280915-280916,281015-281016,282097,282408,282415,283542, 284864,285169-285170,285435: ntp 4.2.8p3. Relnotes: yes Approved by: re (?) --- contrib/ntp/include/ntp_workimpl.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 contrib/ntp/include/ntp_workimpl.h (limited to 'contrib/ntp/include/ntp_workimpl.h') diff --git a/contrib/ntp/include/ntp_workimpl.h b/contrib/ntp/include/ntp_workimpl.h new file mode 100644 index 0000000..a86c2cd --- /dev/null +++ b/contrib/ntp/include/ntp_workimpl.h @@ -0,0 +1,30 @@ +/* + * ntp_workimpl.h - selects worker child implementation + */ +#ifndef NTP_WORKIMPL_H +#define NTP_WORKIMPL_H + +/* + * Some systems do not support fork() and don't have an alternate + * threads implementation of ntp_intres. Such systems are limited + * to using numeric IP addresses. + */ +#if defined(SYS_WINNT) +# define WORK_THREAD +#elif defined(ISC_PLATFORM_USETHREADS) && \ + defined(HAVE_SEM_TIMEDWAIT) && \ + (defined(HAVE_GETCLOCK) || defined(HAVE_CLOCK_GETTIME)) +# define WORK_THREAD +# define WORK_PIPE +#elif defined(VMS) || defined(SYS_VXWORKS) + /* empty */ +#elif defined(HAVE_WORKING_FORK) +# define WORK_FORK +# define WORK_PIPE +#endif + +#if defined(WORK_FORK) || defined(WORK_THREAD) +# define WORKER +#endif + +#endif /* !NTP_WORKIMPL_H */ -- cgit v1.1