Fixup previously added checks (add trailing newline, get rid of C++ comments, etc)

This commit is contained in:
Boris Kolpackov 2022-09-01 11:38:19 +02:00
parent 49a03ff46f
commit f0bb56a739
27 changed files with 39 additions and 32 deletions

View File

@ -5,6 +5,7 @@
#endif #endif
#undef HAVE_DECL_CTL_KERN #undef HAVE_DECL_CTL_KERN
/* Since 4.4BSD (OpenBSD 2.1-6.2, FreeBSD, NetBSD, Mac OS X 10.7), /* Since 4.4BSD (OpenBSD 2.1-6.2, FreeBSD, NetBSD, Mac OS X 10.7),
* <= glibc 2.31. * <= glibc 2.31.
* NOTE: Appears to have been available parallel to sysctl() * NOTE: Appears to have been available parallel to sysctl()

View File

@ -5,6 +5,7 @@
#endif #endif
#undef HAVE_DECL_KERN_ARND #undef HAVE_DECL_KERN_ARND
/* OpenBSD 2.6-6.0. /* OpenBSD 2.6-6.0.
* NOTE: Only mentioned in OpenBSD manual. * NOTE: Only mentioned in OpenBSD manual.
*/ */

View File

@ -6,7 +6,7 @@
#undef HAVE_FUTIMES #undef HAVE_FUTIMES
/* Since Linux/glibc 2.3, FreeBSD 3.x, OpenBSD 1.2 (but the `OpenBSD` macro /* Since Linux/glibc 2.3, FreeBSD 3.x, OpenBSD 1.2 (but the OpenBSD macro
* was only added in 2.0 with a value of 199610), NetBSD 1.2, Mac OS (all * was only added in 2.0 with a value of 199610), NetBSD 1.2, Mac OS (all
* versions). * versions).
*/ */

View File

@ -7,7 +7,7 @@
#undef HAVE_GETENV #undef HAVE_GETENV
/* Since Version 7 AT&T UNIX, 4.3BSD-Tahoe (OpenBSD, FreeBSD, NetBSD, Mac OS X), /* Since Version 7 AT&T UNIX, 4.3BSD-Tahoe (OpenBSD, FreeBSD, NetBSD, Mac OS X),
* glibc 1.09 * glibc 1.09
*/ */
#if defined(__FreeBSD__) || \ #if defined(__FreeBSD__) || \
defined(__OpenBSD__) || \ defined(__OpenBSD__) || \

View File

@ -6,11 +6,11 @@
#undef HAVE_GETHOSTBYNAME_R #undef HAVE_GETHOSTBYNAME_R
/* Since Linux/glibc 2.1, SunOS, AIX and HPUX. /* Since Linux/glibc 2.1, SunOS, AIX and HPUX.
*/ */
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \
defined(__SunOS) && defined(__SunOS_5_5) || \ defined(__SunOS) && defined(__SunOS_5_5) || \
defined(_AIX) || \ defined(_AIX) || \
defined(__hpux) defined(__hpux)
# define HAVE_GETHOSTBYNAME_R 1 # define HAVE_GETHOSTBYNAME_R 1
#endif #endif

View File

@ -6,8 +6,8 @@
#undef HAVE_GETNAMEINFO #undef HAVE_GETNAMEINFO
/* Since Linux/glibc 2.1, OpenBSD 2.9, FreeBSD 4.0, NetBSD 1.5, and Mac OS X /* Since Linux/glibc 2.1, OpenBSD 2.9, FreeBSD 4.0, NetBSD 1.5, and Mac OS X
* (hard to tell but based on the manpages available online it looks like * (hard to tell but based on the manpages available online it looks like
* Tiger at the latest). * Tiger at the latest).
*/ */
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \

View File

@ -7,7 +7,7 @@
#undef HAVE_PUTENV #undef HAVE_PUTENV
/* Since AT&T System V Release 2 UNIX, 4.3BSD-Reno (OpenBSD, FreeBSD, NetBSD, Mac OS X), /* Since AT&T System V Release 2 UNIX, 4.3BSD-Reno (OpenBSD, FreeBSD, NetBSD, Mac OS X),
* glibc 1.09 * glibc 1.09
*/ */
#if defined(__FreeBSD__) || \ #if defined(__FreeBSD__) || \
defined(__OpenBSD__) || \ defined(__OpenBSD__) || \

View File

@ -6,8 +6,8 @@
#undef HAVE_RENAMEAT2 #undef HAVE_RENAMEAT2
// Since Linux 3.15/glibc 2.28. /* Since Linux 3.15/glibc 2.28. */
//
#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 28) #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 28)
# define HAVE_RENAMEAT2 1 # define HAVE_RENAMEAT2 1
#endif #endif

View File

@ -6,7 +6,7 @@
#undef HAVE_STRTOLL #undef HAVE_STRTOLL
/* Since 'ISO C99' (OpenBSD ~2.7, FreeBSD ~4.0, NetBSD ~1.5, Mac OS X ~10.0), /* Since ISO C99 (OpenBSD ~2.7, FreeBSD ~4.0, NetBSD ~1.5, Mac OS X ~10.0),
* glibc 1.90 * glibc 1.90
*/ */
#if BUILD2_AUTOCONF_OPENBSD_PREREQ(200015) || \ #if BUILD2_AUTOCONF_OPENBSD_PREREQ(200015) || \

View File

@ -7,7 +7,7 @@
#undef HAVE_STRUCT_ADDRINFO #undef HAVE_STRUCT_ADDRINFO
/* Since Linux/glibc 2.4, OpenBSD 2.9, FreeBSD 3.5, NetBSD 1.5, and Mac OS /* Since Linux/glibc 2.4, OpenBSD 2.9, FreeBSD 3.5, NetBSD 1.5, and Mac OS
* (hard to tell but based on the manpages available online it looks like * (hard to tell but based on the manpages available online it looks like
* Tiger at the latest). * Tiger at the latest).
* NOTE: Assuming same as HAVE_GETADDRINFO * NOTE: Assuming same as HAVE_GETADDRINFO
*/ */
@ -17,4 +17,4 @@
BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \
defined(BUILD2_AUTOCONF_MACOS) defined(BUILD2_AUTOCONF_MACOS)
# define HAVE_STRUCT_ADDRINFO 1 # define HAVE_STRUCT_ADDRINFO 1
#endif #endif

View File

@ -14,4 +14,4 @@
BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \
defined(BUILD2_AUTOCONF_MACOS) defined(BUILD2_AUTOCONF_MACOS)
# define HAVE_STRUCT_IN6_ADDR 1 # define HAVE_STRUCT_IN6_ADDR 1
#endif #endif

View File

@ -14,4 +14,4 @@
BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \
defined(BUILD2_AUTOCONF_MACOS) defined(BUILD2_AUTOCONF_MACOS)
# define HAVE_STRUCT_LINGER 1 # define HAVE_STRUCT_LINGER 1
#endif #endif

View File

@ -13,4 +13,4 @@
BUILD2_AUTOCONF_NETBSD_PREREQ(2, 1) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(2, 1) || \
BUILD2_AUTOCONF_MACOS_PREREQ(10, 6) BUILD2_AUTOCONF_MACOS_PREREQ(10, 6)
# define HAVE_STRUCT_SOCKADDR_IN6 1 # define HAVE_STRUCT_SOCKADDR_IN6 1
#endif #endif

View File

@ -13,4 +13,4 @@
BUILD2_AUTOCONF_NETBSD_PREREQ(2, 1) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(2, 1) || \
BUILD2_AUTOCONF_MACOS_PREREQ(10, 6) BUILD2_AUTOCONF_MACOS_PREREQ(10, 6)
# define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1 # define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
#endif #endif

View File

@ -14,4 +14,4 @@
defined(__NetBSD__) || \ defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS) defined(BUILD2_AUTOCONF_MACOS)
# define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 # define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
#endif #endif

View File

@ -14,4 +14,4 @@
defined(__NetBSD__) || \ defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS) defined(BUILD2_AUTOCONF_MACOS)
# define HAVE_STRUCT_SOCKADDR_STORAGE 1 # define HAVE_STRUCT_SOCKADDR_STORAGE 1
#endif #endif

View File

@ -16,4 +16,4 @@
BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \
BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) BUILD2_AUTOCONF_MACOS_PREREQ(10, 0)
# define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 # define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
#endif #endif

View File

@ -12,4 +12,4 @@
*/ */
#if !BUILD2_AUTOCONF_GLIBC_PREREQ(2, 3) #if !BUILD2_AUTOCONF_GLIBC_PREREQ(2, 3)
# define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1 # define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
#endif #endif

View File

@ -14,4 +14,4 @@
defined(__NetBSD__) || \ defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS) defined(BUILD2_AUTOCONF_MACOS)
# define HAVE_STRUCT_SOCKADDR_UN 1 # define HAVE_STRUCT_SOCKADDR_UN 1
#endif #endif

View File

@ -10,6 +10,9 @@
* NOTE: No reliable sources found. * NOTE: No reliable sources found.
See (some) info here: https://bugs.mysql.com/bug.php?id=105562 See (some) info here: https://bugs.mysql.com/bug.php?id=105562
*/ */
// #if ...
// # define HAVE_WORKING_KQUEUE 1 /*
// #endif #if ...
# define HAVE_WORKING_KQUEUE 1
#endif
*/

View File

@ -10,4 +10,4 @@
*/ */
#if defined(_WIN32) #if defined(_WIN32)
# define HAVE__GMTIME 1 # define HAVE__GMTIME 1
#endif #endif

View File

@ -10,4 +10,4 @@
*/ */
#if defined(_WIN32) #if defined(_WIN32)
# define HAVE__GMTIME32 1 # define HAVE__GMTIME32 1
#endif #endif

View File

@ -10,4 +10,4 @@
*/ */
#if defined(_WIN32) #if defined(_WIN32)
# define HAVE__GMTIME32_S 1 # define HAVE__GMTIME32_S 1
#endif #endif

View File

@ -10,4 +10,4 @@
*/ */
#if defined(_WIN32) #if defined(_WIN32)
# define HAVE__GMTIME64 1 # define HAVE__GMTIME64 1
#endif #endif

View File

@ -10,4 +10,4 @@
*/ */
#if defined(_WIN32) #if defined(_WIN32)
# define HAVE__GMTIME64_S 1 # define HAVE__GMTIME64_S 1
#endif #endif

View File

@ -10,4 +10,4 @@
*/ */
#if defined(_WIN32) #if defined(_WIN32)
# define HAVE__GMTIME_S 1 # define HAVE__GMTIME_S 1
#endif #endif

View File

@ -2,6 +2,8 @@
#undef SIZEOF_VOID_P #undef SIZEOF_VOID_P
/* @@ TODO: redo using SIZEOF_POINTER (see SIZEOF_SIZE_T). */
#if defined(_WIN64) || defined(__x86_64__) || defined(__ppc64__) #if defined(_WIN64) || defined(__x86_64__) || defined(__ppc64__)
# define SIZEOF_VOID_P 8 # define SIZEOF_VOID_P 8
#else #else