Add HAVE_TIMERADD, HAVE_TIMERCLEAR, HAVE_TIMERISSET (GH PR #17)

This commit is contained in:
Emil Rosenquist 2022-09-01 09:09:05 +02:00 committed by Boris Kolpackov
parent 0132c118e5
commit 995f06fd3a
3 changed files with 51 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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