From 6639c549c7f6396f1285d607971bb322a23e8ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fred=20Helmesj=C3=B6?= Date: Tue, 20 Sep 2022 15:20:06 +0200 Subject: [PATCH] Add HAVE_SCHED_H (GH PR #58) --- .../libbuild2/autoconf/checks/HAVE_SCHED_H.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SCHED_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SCHED_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SCHED_H.h new file mode 100644 index 0000000..a35f14c --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SCHED_H.h @@ -0,0 +1,17 @@ +// HAVE_SCHED_H : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_SCHED_H + +/* Since glibc 2.0, FreeBSD 3.0, OpenBSD 4.9, NetBSD 5.0, Mac OS. + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(3, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(201105) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(5, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_SCHED_H 1 +#endif