From 0af3dcd4f4e9e5c29651965335f7dc33a7be7894 Mon Sep 17 00:00:00 2001 From: tux-mind Date: Tue, 27 May 2014 14:22:08 +0200 Subject: [PATCH] mysql.h location can be both and --- hydra-mysql.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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