From 0b15ad17b9b53dcf97e76b8b43c56030b95dba45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fred=20Helmesj=C3=B6?= Date: Thu, 1 Sep 2022 08:55:13 +0200 Subject: [PATCH] Add HAVE_PORT_H, HAVE_PORT_CREATE (GH PR #10) --- .../libbuild2/autoconf/checks/HAVE_PORT_CREATE.h | 14 ++++++++++++++ .../libbuild2/autoconf/checks/HAVE_PORT_H.h | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PORT_CREATE.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PORT_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PORT_CREATE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PORT_CREATE.h new file mode 100644 index 0000000..69ac242 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PORT_CREATE.h @@ -0,0 +1,14 @@ +// HAVE_PORT_CREATE : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_PORT_CREATE + +/* Since Solaris version ... (?). No version details in manual. + */ +#if (defined(__sun) && defined(__SVR4)) || \ + defined(__sun__) +# define HAVE_PORT_CREATE 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PORT_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PORT_H.h new file mode 100644 index 0000000..1e5eb79 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PORT_H.h @@ -0,0 +1,14 @@ +// HAVE_PORT_H : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_PORT_H + +/* Since Solaris version ... (?). No version details in manual. + */ +#if (defined(__sun) && defined(__SVR4)) || \ + defined(__sun__) +# define HAVE_PORT_H 1 +#endif