From 995f06fd3a4ec9e797e4b1debca1c6106ac84405 Mon Sep 17 00:00:00 2001 From: Emil Rosenquist <37864286+EmilRosenquist@users.noreply.github.com> Date: Thu, 1 Sep 2022 09:09:05 +0200 Subject: [PATCH] Add HAVE_TIMERADD, HAVE_TIMERCLEAR, HAVE_TIMERISSET (GH PR #17) --- .../libbuild2/autoconf/checks/HAVE_TIMERADD.h | 17 +++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_TIMERCLEAR.h | 17 +++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_TIMERISSET.h | 17 +++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TIMERADD.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TIMERCLEAR.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TIMERISSET.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TIMERADD.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TIMERADD.h new file mode 100644 index 0000000..8c8bba8 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TIMERADD.h @@ -0,0 +1,17 @@ +// HAVE_TIMERADD : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_TIMERADD + +/* Since Linux/glibc 2.1, OpenBSD 2.9, FreeBSD 5.0, NetBSD 6.0 and Mac OS + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200106) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(6, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_TIMERADD 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TIMERCLEAR.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TIMERCLEAR.h new file mode 100644 index 0000000..5f17c6f --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TIMERCLEAR.h @@ -0,0 +1,17 @@ +// HAVE_TIMERCLEAR : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_TIMERCLEAR + +/* Since Linux/glibc 2.1, OpenBSD 2.9, FreeBSD 5.0, NetBSD 6.0 and Mac OS + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200106) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(6, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_TIMERCLEAR 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TIMERISSET.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TIMERISSET.h new file mode 100644 index 0000000..a11dcc1 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TIMERISSET.h @@ -0,0 +1,17 @@ +// HAVE_TIMERISSET : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_TIMERISSET + +/* Since Linux/glibc 2.1, OpenBSD 2.9, FreeBSD 5.0, NetBSD 6.0 and Mac OS + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200106) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(6, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_TIMERISSET 1 +#endif