From 3ce4b51020c7d6aadfd1e38e89b450e050ec2937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fred=20Helmesj=C3=B6?= Date: Thu, 1 Sep 2022 08:51:21 +0200 Subject: [PATCH] Add HAVE_FD_MASK (GH PR #8) --- .../libbuild2/autoconf/checks/HAVE_FD_MASK.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FD_MASK.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FD_MASK.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FD_MASK.h new file mode 100644 index 0000000..81315e3 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FD_MASK.h @@ -0,0 +1,16 @@ +// HAVE_FD_MASK : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_FD_MASK + +/* Extremely little information, other than it being very old... */ +#if defined(__FreeBSD__) || \ + defined(__OpenBSD__) || \ + defined(__NetBSD__) || \ + defined(__GLIBC__) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_FD_MASK 1 +#endif