Define HAVE_SYS_POLL_H on MacOS and BSDs (GH PR #62)

This commit is contained in:
Fred Helmesjö 2022-09-27 10:09:44 +02:00 committed by GitHub
parent 0e3f537dda
commit 7d68b0c733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,9 +6,14 @@
#undef HAVE_SYS_POLL_H #undef HAVE_SYS_POLL_H
/* All use poll.h: FreeBSD, OpenBSD, NetBSD, Mac OS. /* Since glibc 2.0.
* Since glibc 2.0. * FreeBSD, OpenBSD, NetBSD, Mac OS:
* All use poll.h though sys/poll.h still exists.
*/ */
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \
defined(__FreeBSD__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS)
# define HAVE_SYS_POLL_H 1 # define HAVE_SYS_POLL_H 1
#endif #endif