Add HAVE_SYS_*_H, HAVE_SELECT, HAVE_SENDFILE, HAVE_SYSCLT (GH PR #21)
This commit is contained in:
parent
0364b16e8c
commit
cc385bb874
17
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SELECT.h
Normal file
17
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SELECT.h
Normal file
@ -0,0 +1,17 @@
|
||||
// HAVE_SELECT : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SELECT
|
||||
|
||||
/* Since 4.2BSD (~1983)
|
||||
*/
|
||||
#if defined(__linux__) || \
|
||||
defined(__FreeBSD__) || \
|
||||
defined(__OpenBSD__) || \
|
||||
defined(__NetBSD__) || \
|
||||
defined(BUILD2_AUTOCONF_MACOS)
|
||||
# define HAVE_SELECT 1
|
||||
#endif
|
15
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SENDFILE.h
Normal file
15
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SENDFILE.h
Normal file
@ -0,0 +1,15 @@
|
||||
// HAVE_SENDFILE : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SENDFILE
|
||||
|
||||
/* Since FreeBSD 3.0, Mac OS 10.5, glibc 2.1
|
||||
*/
|
||||
#if BUILD2_AUTOCONF_FREEBSD_PREREQ(3, 0) || \
|
||||
BUILD2_AUTOCONF_MACOS_PREREQ(10, 5) || \
|
||||
BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1)
|
||||
# define HAVE_SENDFILE 1
|
||||
#endif
|
17
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYSCTL.h
Normal file
17
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYSCTL.h
Normal file
@ -0,0 +1,17 @@
|
||||
// HAVE_SYSCTL : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SYSCTL
|
||||
/* Since 4.4BSD (OpenBSD 2.1-6.2, FreeBSD, NetBSD, Mac OS X 10.7),
|
||||
* <= glibc 2.31.
|
||||
*/
|
||||
#if (BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) && !BUILD2_AUTOCONF_OPENBSD_PREREQ(201804)) || \
|
||||
BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 3) || \
|
||||
BUILD2_AUTOCONF_NETBSD_PREREQ(2, 0) || \
|
||||
BUILD2_AUTOCONF_MACOS_PREREQ(10, 7) || \
|
||||
!BUILD2_AUTOCONF_GLIBC_PREREQ(2, 32)
|
||||
# define HAVE_SYSCTL 1
|
||||
#endif
|
@ -0,0 +1,15 @@
|
||||
// HAVE_SYS_EVENTFD_H : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SYS_EVENTFD_H
|
||||
|
||||
/* Since FreeBSD 13.0, NetBSD 10.0, glibc 2.8
|
||||
*/
|
||||
#if BUILD2_AUTOCONF_FREEBSD_PREREQ(13, 0) || \
|
||||
BUILD2_AUTOCONF_NETBSD_PREREQ(10, 0) || \
|
||||
BUILD2_AUTOCONF_GLIBC_PREREQ(2, 8)
|
||||
# define HAVE_SYS_EVENTFD_H 1
|
||||
#endif
|
@ -0,0 +1,16 @@
|
||||
// HAVE_SYS_IOCTL_H : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SYS_IOCTL_H
|
||||
/* Since Version 7 AT&T UNIX (1979)
|
||||
*/
|
||||
#if defined(__linux__) || \
|
||||
defined(__FreeBSD__) || \
|
||||
defined(__OpenBSD__) || \
|
||||
defined(__NetBSD__) || \
|
||||
defined(BUILD2_AUTOCONF_MACOS)
|
||||
# define HAVE_SYS_IOCTL_H 1
|
||||
#endif
|
@ -0,0 +1,16 @@
|
||||
// HAVE_SYS_PARAM_H : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SYS_PARAM_H
|
||||
/* Since 4.4BSD (~1995)
|
||||
*/
|
||||
#if defined(__linux__) || \
|
||||
defined(__FreeBSD__) || \
|
||||
defined(__OpenBSD__) || \
|
||||
defined(__NetBSD__) || \
|
||||
defined(BUILD2_AUTOCONF_MACOS)
|
||||
# define HAVE_SYS_PARAM_H 1
|
||||
#endif
|
@ -0,0 +1,15 @@
|
||||
// HAVE_SYS_RANDOM_H : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SYS_RANDOM_H
|
||||
|
||||
/* FreeBSD 12.0, NetBSD 10.0 and glibc 2.25.
|
||||
*/
|
||||
#if BUILD2_AUTOCONF_FREEBSD_PREREQ(12, 0) || \
|
||||
BUILD2_AUTOCONF_NETBSD_PREREQ(10, 0) || \
|
||||
BUILD2_AUTOCONF_GLIBC_PREREQ(2, 25)
|
||||
# define HAVE_SYS_RANDOM_H 1
|
||||
#endif
|
@ -0,0 +1,16 @@
|
||||
// HAVE_SYS_RESOURCE_H : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SYS_RESOURCE_H
|
||||
/* Since 4.2BSD (~1983)
|
||||
*/
|
||||
#if defined(__linux__) || \
|
||||
defined(__FreeBSD__) || \
|
||||
defined(__OpenBSD__) || \
|
||||
defined(__NetBSD__) || \
|
||||
defined(BUILD2_AUTOCONF_MACOS)
|
||||
# define HAVE_SYS_RESOURCE_H 1
|
||||
#endif
|
@ -0,0 +1,17 @@
|
||||
// HAVE_SYS_SELECT_H : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SYS_SELECT_H
|
||||
|
||||
/* Since 4.2BSD (~1983)
|
||||
*/
|
||||
#if defined(__linux__) || \
|
||||
defined(__FreeBSD__) || \
|
||||
defined(__OpenBSD__) || \
|
||||
defined(__NetBSD__) || \
|
||||
defined(BUILD2_AUTOCONF_MACOS)
|
||||
# define HAVE_SYS_RESOURCE_H 1
|
||||
#endif
|
@ -0,0 +1,15 @@
|
||||
// HAVE_SYS_SENDFILE_H : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SYS_SENDFILE_H
|
||||
|
||||
/* Since FreeBSD 3.0, Mac OS 10.5, glibc 2.1
|
||||
*/
|
||||
#if BUILD2_AUTOCONF_FREEBSD_PREREQ(3, 0) || \
|
||||
BUILD2_AUTOCONF_MACOS_PREREQ(10, 5) || \
|
||||
BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1)
|
||||
# define HAVE_SYS_SENDFILE_H 1
|
||||
#endif
|
@ -0,0 +1,16 @@
|
||||
// HAVE_SYS_SOCKET_H : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SYS_SOCKET_H
|
||||
/* Since 4.2BSD (~1983)
|
||||
*/
|
||||
#if defined(__linux__) || \
|
||||
defined(__FreeBSD__) || \
|
||||
defined(__OpenBSD__) || \
|
||||
defined(__NetBSD__) || \
|
||||
defined(BUILD2_AUTOCONF_MACOS)
|
||||
# define HAVE_SYS_SOCKET_H 1
|
||||
#endif
|
@ -0,0 +1,16 @@
|
||||
// HAVE_SYS_STAT_H : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SYS_STAT_H
|
||||
/* Since 4.2BSD (~1983)
|
||||
*/
|
||||
#if defined(__linux__) || \
|
||||
defined(__FreeBSD__) || \
|
||||
defined(__OpenBSD__) || \
|
||||
defined(__NetBSD__) || \
|
||||
defined(BUILD2_AUTOCONF_MACOS)
|
||||
# define HAVE_SYS_STAT_H 1
|
||||
#endif
|
@ -0,0 +1,18 @@
|
||||
// HAVE_SYS_SYSCTL_H : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SYS_SYSCTL_H
|
||||
|
||||
/* Since 4.4BSD (OpenBSD 2.1-6.2, FreeBSD, NetBSD, Mac OS X 10.7),
|
||||
* <= glibc 2.31.
|
||||
*/
|
||||
#if (BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) && !BUILD2_AUTOCONF_OPENBSD_PREREQ(201804)) || \
|
||||
BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 3) || \
|
||||
BUILD2_AUTOCONF_NETBSD_PREREQ(2, 0) || \
|
||||
BUILD2_AUTOCONF_MACOS_PREREQ(10, 7) || \
|
||||
!BUILD2_AUTOCONF_GLIBC_PREREQ(2, 32)
|
||||
# define HAVE_SYS_SYSCTL_H 1
|
||||
#endif
|
@ -0,0 +1,14 @@
|
||||
// HAVE_SYS_TIMERFD_H : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SYS_TIMERFD_H
|
||||
|
||||
/* Since NetBSD 10.0, glibc 2.8.
|
||||
*/
|
||||
#if BUILD2_AUTOCONF_NETBSD_PREREQ(10, 0) || \
|
||||
BUILD2_AUTOCONF_GLIBC_PREREQ(2, 8)
|
||||
# define HAVE_SYS_TIMERFD_H 1
|
||||
#endif
|
@ -0,0 +1,18 @@
|
||||
// HAVE_SYS_TIME_H : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SYS_TIME_H
|
||||
|
||||
/* Since 4.2BSD (OpenBSD, FreeBSD, Mac OS X), NetBSD 6.0
|
||||
*/
|
||||
#if defined(__linux__) || \
|
||||
defined(__FreeBSD__) || \
|
||||
defined(__OpenBSD__) || \
|
||||
defined(__NetBSD__) || \
|
||||
defined(BUILD2_AUTOCONF_MACOS) || \
|
||||
BUILD2_AUTOCONF_NETBSD_PREREQ(6, 0)
|
||||
# define HAVE_SYS_TIME_H 1
|
||||
#endif
|
@ -0,0 +1,11 @@
|
||||
// HAVE_SYS_TYPES_H : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
/* Linux only (?) */
|
||||
#if defined(__linux__)
|
||||
# define HAVE_SYS_TYPES_H 1
|
||||
#endif
|
@ -0,0 +1,17 @@
|
||||
// HAVE_SYS_UIO_H : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SYS_UIO_H
|
||||
|
||||
/* Since 4.2BSD (Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X)
|
||||
*/
|
||||
#if defined(__linux__) || \
|
||||
defined(__FreeBSD__) || \
|
||||
defined(__OpenBSD__) || \
|
||||
defined(__NetBSD__) || \
|
||||
defined(BUILD2_AUTOCONF_MACOS)
|
||||
# define HAVE_SYS_UIO_H 1
|
||||
#endif
|
17
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_UN_H.h
Normal file
17
libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_UN_H.h
Normal file
@ -0,0 +1,17 @@
|
||||
// HAVE_SYS_UN_H : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SYS_UN_H
|
||||
|
||||
/* Since 4.3BSD (?)
|
||||
*/
|
||||
#if defined(__linux__) || \
|
||||
defined(__FreeBSD__) || \
|
||||
defined(__OpenBSD__) || \
|
||||
defined(__NetBSD__) || \
|
||||
defined(BUILD2_AUTOCONF_MACOS)
|
||||
# define HAVE_SYS_UN_H 1
|
||||
#endif
|
@ -0,0 +1,16 @@
|
||||
// HAVE_SYS_WAIT_H : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_SYS_WAIT_H
|
||||
/* Since 4.3BSD (~1994)
|
||||
*/
|
||||
#if defined(__linux__) || \
|
||||
defined(__FreeBSD__) || \
|
||||
defined(__OpenBSD__) || \
|
||||
defined(__NetBSD__) || \
|
||||
defined(BUILD2_AUTOCONF_MACOS)
|
||||
# define HAVE_SYS_WAIT_H 1
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user