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