From 30bc3f72c030235e7d54e31cf4a43480345217de Mon Sep 17 00:00:00 2001 From: Emil Rosenquist <37864286+EmilRosenquist@users.noreply.github.com> Date: Thu, 1 Sep 2022 09:10:49 +0200 Subject: [PATCH] Add HAVE_TIMERFD_CREATE (GH PR #18) --- .../autoconf/checks/HAVE_TIMERFD_CREATE.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TIMERFD_CREATE.h 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