summaryrefslogtreecommitdiff
path: root/libmysqlclient/mysql/my_config.h
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-12-05 13:47:20 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2023-12-05 13:47:20 +0300
commit0f00acbca40c056dcbba89423ac88dd819d222d9 (patch)
treebc17a4a44aa651d0cb647ecca2f318646fb21e8d /libmysqlclient/mysql/my_config.h
parentab06271eef2a9d595481c98cdad7e5219bf76067 (diff)
Release version 8.0.15+12v8.0.15+12
Define HAVE_STRLCAT on Linux if GNU libc is 2.38 or newer. Fix link order so that libraries are linked after all object files. Switch to using -pthread instead of -D_REENTRANT/-lpthread in buildfiles and bump build2 version requirement to 0.15.0. Use legal{} target type for legal documentation (LICENSE, etc).
Diffstat (limited to 'libmysqlclient/mysql/my_config.h')
-rw-r--r--libmysqlclient/mysql/my_config.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/libmysqlclient/mysql/my_config.h b/libmysqlclient/mysql/my_config.h
index e13079b..be16fe6 100644
--- a/libmysqlclient/mysql/my_config.h
+++ b/libmysqlclient/mysql/my_config.h
@@ -117,6 +117,18 @@
#undef HAVE_ULONG
/*
+ * GNU libc added strlcpy() and strlcat() in version 2.38 (in anticipation
+ * of their addition to POSIX).
+ */
+#if defined(__FreeBSD__) || \
+ defined(__APPLE__) || \
+ (defined(__GLIBC__) && \
+ defined(__GLIBC_MINOR__) && \
+ (__GLIBC__ > 2 || __GLIBC__ == 2 && __GLIBC_MINOR__ >= 38))
+# define HAVE_STRLCAT 1
+#endif
+
+/*
* Specific for Linux.
*/
#ifdef __linux__
@@ -181,7 +193,6 @@
# define HAVE_KQUEUE_TIMERS 1
# define HAVE_SOCKADDR_IN_SIN_LEN 1
# define HAVE_SOCKADDR_IN6_SIN6_LEN 1
-# define HAVE_STRLCAT 1
#endif
/*