From 0f00acbca40c056dcbba89423ac88dd819d222d9 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 5 Dec 2023 13:47:20 +0300 Subject: Release version 8.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). --- libmysqlclient/mysql/my_config.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'libmysqlclient/mysql/my_config.h') 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 /* -- cgit v1.1