Fix HAVE_STRTOK_R

This commit is contained in:
Francois Kritzinger 2022-09-14 11:30:23 +02:00
parent 728c7bfddb
commit 664f5a752b

View File

@ -6,13 +6,14 @@
#undef HAVE_STRTOK_R #undef HAVE_STRTOK_R
/* Since 4.4BSD (OpenBSD, FreeBSD, NetBSD, Mac OS X), /* Since 4.4BSD (OpenBSD, FreeBSD, NetBSD, Mac OS X), glibc 2.0, and Mingw-w64
* glibc 2.0 * 3.3.0.
*/ */
#if defined(__FreeBSD__) || \ #if defined(__FreeBSD__) || \
defined(__OpenBSD__) || \ defined(__OpenBSD__) || \
defined(__NetBSD__) || \ defined(__NetBSD__) || \
defined(BUILD2_AUTOCONF_MACOS) || \ defined(BUILD2_AUTOCONF_MACOS) || \
BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \
BUILD2_AUTOCONF_MINGW_PREREQ(3, 3)
# define HAVE_STRTOK_R 1 # define HAVE_STRTOK_R 1
#endif #endif