aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_my_lib.h2
-rw-r--r--src/include/gnunet_mysql_lib.h6
-rw-r--r--src/mysql/mysql.c6
3 files changed, 7 insertions, 7 deletions
diff --git a/src/include/gnunet_my_lib.h b/src/include/gnunet_my_lib.h
index 74e7bf492..b8513ca84 100644
--- a/src/include/gnunet_my_lib.h
+++ b/src/include/gnunet_my_lib.h
@@ -245,7 +245,7 @@ struct GNUNET_MY_ResultSpec
245 /** 245 /**
246 * Memory for MySQL to notify us about NULL values. 246 * Memory for MySQL to notify us about NULL values.
247 */ 247 */
248 my_bool is_null; 248 MYSQL_BOOL is_null;
249}; 249};
250 250
251 251
diff --git a/src/include/gnunet_mysql_lib.h b/src/include/gnunet_mysql_lib.h
index 964483024..843d3ccb3 100644
--- a/src/include/gnunet_mysql_lib.h
+++ b/src/include/gnunet_mysql_lib.h
@@ -41,6 +41,12 @@ extern "C"
41#endif 41#endif
42#endif 42#endif
43 43
44#ifdef HAVE_MYSQL8
45 typedef bool MYSQL_BOOL;
46#else
47 typedef my_bool MYSQL_BOOL; //MySQL < 8 wants this
48#endif
49
44 50
45/** 51/**
46 * Mysql context. 52 * Mysql context.
diff --git a/src/mysql/mysql.c b/src/mysql/mysql.c
index 4df1893c6..e20debc82 100644
--- a/src/mysql/mysql.c
+++ b/src/mysql/mysql.c
@@ -26,12 +26,6 @@
26#include <mysql/mysql.h> 26#include <mysql/mysql.h>
27#include "gnunet_mysql_lib.h" 27#include "gnunet_mysql_lib.h"
28 28
29#ifdef HAVE_MYSQL8
30 typedef bool MYSQL_BOOL;
31#else
32 typedef my_bool MYSQL_BOOL; //MySQL < 8 wants this
33#endif
34
35/** 29/**
36 * Maximum number of supported parameters for a prepared 30 * Maximum number of supported parameters for a prepared
37 * statement. Increase if needed. 31 * statement. Increase if needed.