From 7d68b0c73328fed336f998a9435d0ecf91839877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fred=20Helmesj=C3=B6?= Date: Tue, 27 Sep 2022 10:09:44 +0200 Subject: [PATCH] Define HAVE_SYS_POLL_H on MacOS and BSDs (GH PR #62) --- .../libbuild2/autoconf/checks/HAVE_SYS_POLL_H.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_POLL_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_POLL_H.h index d18a6aa..47d532e 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_POLL_H.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_POLL_H.h @@ -6,9 +6,14 @@ #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 #endif