Add HAVE_TIMERFD_CREATE (GH PR #18)

This commit is contained in:
Emil Rosenquist 2022-09-01 09:10:49 +02:00 committed by Boris Kolpackov
parent 995f06fd3a
commit 30bc3f72c0

View File

@ -0,0 +1,14 @@
// HAVE_TIMERFD_CREATE : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_TIMERFD_CREATE
/* Since Linux/glibc 2.8 and Mac OS
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 8) || \
defined(BUILD2_AUTOCONF_MACOS)
# define HAVE_TIMERFD_CREATE 1
#endif