diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TIMERFD_CREATE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TIMERFD_CREATE.h new file mode 100644 index 0000000..8d642fd --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TIMERFD_CREATE.h @@ -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