From d16544b283bdcc6c4fe1950999a8b449ee6c0f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fred=20Helmesj=C3=B6?= Date: Thu, 1 Sep 2022 08:58:47 +0200 Subject: [PATCH] Add HAVE_ISSETUGID (GH PR #14) --- .../libbuild2/autoconf/checks/HAVE_ISSETUGID.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISSETUGID.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISSETUGID.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISSETUGID.h new file mode 100644 index 0000000..f7387a1 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISSETUGID.h @@ -0,0 +1,17 @@ +// HAVE_ISSETUGID : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_ISSETUGID + +/* Since OpenBSD 2.0, FreeBSD 3.0, NetBSD 1.5, Mac OS X, Solaris + */ +#if BUILD2_AUTOCONF_OPENBSD_PREREQ(200601) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 3) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(5, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_ISSETUGID 1 +#endif