Branch: Tag:

2019-10-06

2019-10-06 07:55:41 by Marcus Comstedt <marcus@mc.pp.se>

Mysql: Fix check for my_bool

It seems that version numbering gets all screwy when MariaDB is added
to the mix, so can't really use it to check for features or quirks...

Explicitly test for existence of my_bool instead.

640:    fi    AC_MSG_RESULT($pike_cv_have_mysql_field_net_vio)    +  # my_bool was removed in MySQL 8 +  AC_CHECK_TYPES([my_bool], [], [], [ + #ifdef HAVE_WINSOCK2_H + #include <winsock2.h> + #elif defined(HAVE_WINSOCK_H) + #include <winsock.h> + #endif +  + #ifdef HAVE_MYSQL_H + #include <mysql.h> + #else + #ifdef HAVE_MYSQL_MYSQL_H + #include <mysql/mysql.h> + #else + #error Need mysql.h headerfile! + #endif + #endif +  ]) +     fi   fi      AC_OUTPUT(Makefile,echo FOO >stamp-h )