From 6143b979e23d1920cb7d73a010d3e96c029252b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fred=20Helmesj=C3=B6?= Date: Tue, 20 Sep 2022 15:19:28 +0200 Subject: [PATCH] Add HAVE_SYS_POLL_H (GH PR #57) --- .../libbuild2/autoconf/checks/HAVE_SYS_POLL_H.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_POLL_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_POLL_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_POLL_H.h new file mode 100644 index 0000000..d18a6aa --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_POLL_H.h @@ -0,0 +1,14 @@ +// HAVE_SYS_POLL_H : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_SYS_POLL_H + +/* All use poll.h: FreeBSD, OpenBSD, NetBSD, Mac OS. + * Since glibc 2.0. + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) +# define HAVE_SYS_POLL_H 1 +#endif