From a7bbed8b7dc857fb065dc03e9d309a324c01e3a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fred=20Helmesj=C3=B6?= Date: Tue, 20 Sep 2022 15:15:24 +0200 Subject: [PATCH] Add HAVE_SIGNAL_H (GH PR #55) --- .../libbuild2/autoconf/checks/HAVE_SIGNAL_H.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIGNAL_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIGNAL_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIGNAL_H.h new file mode 100644 index 0000000..94c239f --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIGNAL_H.h @@ -0,0 +1,19 @@ +// HAVE_SIGNAL_H : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_SIGNAL_H + +/* Since Version 3 AT&T UNIX (older than 1979). + * Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, Solaris + */ +#if defined(__linux__) || \ + defined(__FreeBSD__) || \ + defined(__OpenBSD__) || \ + defined(__NetBSD__) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_SIGNAL_H 1 +#endif