mysql.h location can be both <mysql/mysql.h> and <mysql.h>

This commit is contained in:
tux-mind 2014-05-27 14:22:08 +02:00
parent 08a95ea313
commit 0af3dcd4f4

View file

@ -22,8 +22,13 @@ void service_mysql(char *ip, int sp, unsigned char options, char *miscptr, FILE
#ifndef LIBMYSQLCLIENT
#else
#if defined(HAVE_MYSQL_MYSQL_H)
#include <mysql/mysql.h>
#elif defined(HAVE_MYSQL_H)
#include <mysql.h>
#else
#error libmysqlclient found, but no usable headers available
#endif
MYSQL *mysql = NULL;
#endif