Add HAVE_EPOLL, HAVE_DEVPOLL, HAVE_KQUEUE, HAVE_WORKING_KQUEUE, HAVE_EPOLL_CREATE, HAVE_EPOLL_CREATE1 (GH PR #9)

This commit is contained in:
Fred Helmesjö 2022-09-01 08:53:47 +02:00 committed by Boris Kolpackov
parent 3ce4b51020
commit 858a6d0bf2
6 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,14 @@
// HAVE_DEVPOLL : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_DEVPOLL
/* Since Solaris version ... (?). No version details in manual.
*/
#if (defined(__sun) && defined(__SVR4)) || \
defined(__sun__)
# define HAVE_DEVPOLL 1
#endif

View File

@ -0,0 +1,13 @@
// HAVE_EPOLL : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_EPOLL
/* Since glibc 2.3.2.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 3)
# define HAVE_EPOLL 1
#endif

View File

@ -0,0 +1,13 @@
// HAVE_EPOLL_CREATE : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_EPOLL_CREATE
/* Since glibc 2.3.2.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 3)
# define HAVE_EPOLL_CREATE 1
#endif

View File

@ -0,0 +1,13 @@
// HAVE_EPOLL_CREATE1 : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_EPOLL_CREATE1
/* Since glibc 2.9.
*/
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 9)
# define HAVE_EPOLL_CREATE1 1
#endif

View File

@ -0,0 +1,16 @@
// HAVE_KQUEUE : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_KQUEUE
/* Since OpenBSD 2.9, FreeBSD 4.1, NetBSD 2.0, MacOS 10.0.
*/
#if BUILD2_AUTOCONF_OPENBSD_PREREQ(200106) || \
BUILD2_AUTOCONF_FREEBSD_PREREQ(4, 1) || \
BUILD2_AUTOCONF_NETBSD_PREREQ(2, 0) || \
BUILD2_AUTOCONF_MACOS_PREREQ(10, 0)
# define HAVE_KQUEUE 1
#endif

View File

@ -0,0 +1,15 @@
// HAVE_WORKING_KQUEUE : BUILD2_AUTOCONF_LIBC_VERSION
#ifndef BUILD2_AUTOCONF_LIBC_VERSION
# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included
#endif
#undef HAVE_WORKING_KQUEUE
/* Since ...
* NOTE: No reliable sources found.
See (some) info here: https://bugs.mysql.com/bug.php?id=105562
*/
// #if ...
// # define HAVE_WORKING_KQUEUE 1
// #endif