diff --git a/hydra-mysql.c b/hydra-mysql.c index 4a839cc..77b3d61 100644 --- a/hydra-mysql.c +++ b/hydra-mysql.c @@ -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 +#elif defined(HAVE_MYSQL_H) +#include +#else +#error libmysqlclient found, but no usable headers available +#endif MYSQL *mysql = NULL; #endif