ports/net/libnss-mysql/files/patch-src_nss__mysql.h
Dima Panov 1709b49e19 net/libnss-mysql: unbreak build with mysql80/maria105+ (+)
Transfer maintainership vd => fluffy

PR:		269130
Approved by:	vd
2023-02-01 15:08:25 +03:00

13 lines
384 B
C

--- src/nss_mysql.h.orig 2005-09-04 03:34:02 UTC
+++ src/nss_mysql.h
@@ -72,6 +72,10 @@ typedef nss_status_t NSS_STATUS;
/* Default initializers */
#define DEF_TIMEOUT 3
+#if !defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 80001
+#define my_bool bool
+#endif
+
#ifdef DEBUG
void _nss_mysql_debug (char *fmt, ...);
#define DEBUG_FILE "/tmp/libnss-mysql-debug.log"