Mercurial > hg > freeDiameter
diff extensions/app_diameap/diameap_init.c @ 1418:a51f71694121
fix build with MySQL >= 8.0
MySQL 8.0 deprecated my_bool in favour of C99's bool.
Detect if my_bool is available, and if not, provide
a replacement.
author | Luke Mewburn <luke@mewburn.net> |
---|---|
date | Tue, 18 Feb 2020 20:58:20 +1100 |
parents | 2091bf698fb1 |
children |
line wrap: on
line diff
--- a/extensions/app_diameap/diameap_init.c Tue Feb 18 19:12:16 2020 +1100 +++ b/extensions/app_diameap/diameap_init.c Tue Feb 18 20:58:20 2020 +1100 @@ -38,6 +38,11 @@ #include "diameap_common.h" +#ifndef HAVE_MYSQL_MY_BOOL +#include <stdbool.h> +typedef bool my_bool; +#endif /* HAVE_MYSQL_MY_BOOL */ + /* Dictionary Object templates */ struct dict_object * dataobj_diameap_cmd = NULL; /* Diameter-EAP-Request Command Code */ struct dict_object * dataobj_diameap_app = NULL; /* Diameter EAP Application object */