From ca7bedbbd3c80c18cbb67211ca41d0998f19986b Mon Sep 17 00:00:00 2001 From: Francois Kritzinger Date: Tue, 22 Mar 2022 14:35:53 +0200 Subject: [PATCH] Add HAVE_UNISTD_H and HAVE_FCNTL_H --- .../libbuild2/autoconf/checks/HAVE_FCNTL_H.h | 11 +++++++++++ .../libbuild2/autoconf/checks/HAVE_UNISTD_H.h | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FCNTL_H.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_UNISTD_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FCNTL_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FCNTL_H.h new file mode 100644 index 0000000..bb94506 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FCNTL_H.h @@ -0,0 +1,11 @@ +// HAVE_FCNTL_H + +#undef HAVE_FCNTL_H + +#if defined(__linux__) || \ + defined(__FreeBSD__) || \ + defined(__OpenBSD__) || \ + defined(__NetBSD__) || \ + (defined(__APPLE__) && defined(__MACH__)) +# define HAVE_FCNTL_H 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_UNISTD_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_UNISTD_H.h new file mode 100644 index 0000000..7d57a04 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_UNISTD_H.h @@ -0,0 +1,11 @@ +// HAVE_UNISTD_H + +#undef HAVE_UNISTD_H + +#if defined(__linux__) || \ + defined(__FreeBSD__) || \ + defined(__OpenBSD__) || \ + defined(__NetBSD__) || \ + (defined(__APPLE__) && defined(__MACH__)) +# define HAVE_UNISTD_H 1 +#endif