Add HAVE_POSIX_SHM and HAVE_POSIX_SEM
This commit is contained in:
parent
198f70bab2
commit
6a38159c38
@ -0,0 +1,24 @@
|
||||
// HAVE_POSIX_SEM : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
/* If HAVE_POSIX_SEM is defined then all of the POSIX semaphore system calls
|
||||
* such as sem_open(), sem_close(), sem_unlink(), etc. are available.
|
||||
*/
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_POSIX_SEM
|
||||
|
||||
/* Since glibc 2.3.3 (when NPTL was added), FreeBSD 3.0, OpenBSD 3.1 (based on
|
||||
* checking the online manpages by version), and NetBSD 2.0.
|
||||
*
|
||||
* Available on all versions of macOS.
|
||||
*/
|
||||
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 4) || \
|
||||
BUILD2_AUTOCONF_FREEBSD_PREREQ(3, 0) || \
|
||||
BUILD2_AUTOCONF_OPENBSD_PREREQ(200206) || \
|
||||
BUILD2_AUTOCONF_NETBSD_PREREQ(2, 0) || \
|
||||
defined(BUILD2_AUTOCONF_MACOS)
|
||||
# define HAVE_POSIX_SEM 1
|
||||
#endif
|
@ -0,0 +1,25 @@
|
||||
// HAVE_POSIX_SHM : BUILD2_AUTOCONF_LIBC_VERSION
|
||||
|
||||
/* If HAVE_POSIX_SHM is defined then both shm_open() and shm_unlink() are
|
||||
* available.
|
||||
*/
|
||||
|
||||
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
|
||||
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
|
||||
#endif
|
||||
|
||||
#undef HAVE_POSIX_SHM
|
||||
|
||||
/* Since glibc 2.2, FreeBSD 4.3, and NetBSD 7.0.
|
||||
*
|
||||
* Available on all versions of macOS.
|
||||
*
|
||||
* Not available on OpenBSD (security concerns).
|
||||
*
|
||||
*/
|
||||
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 2) || \
|
||||
BUILD2_AUTOCONF_FREEBSD_PREREQ(4, 3) || \
|
||||
BUILD2_AUTOCONF_NETBSD_PREREQ(7, 0) || \
|
||||
defined(BUILD2_AUTOCONF_MACOS)
|
||||
# define HAVE_POSIX_SHM 1
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user