diff options
author | Adam <Adam@anope.org> | 2014-05-30 15:45:57 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-05-30 18:14:55 -0400 |
commit | f20bac996da46556a821c1b0244a202e652fe247 (patch) | |
tree | 438bfc81c3094163bd37f552cac0f5acc335c58a /modules/extra/m_mysql.cpp | |
parent | 93bfd4cbe1674c063dca17e7176364f30348eb7c (diff) |
Fix Windows build and update library names to the newer ones.
Also fix crash on Windows when unloading a module because it threw an
exception.
Diffstat (limited to 'modules/extra/m_mysql.cpp')
-rw-r--r-- | modules/extra/m_mysql.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/extra/m_mysql.cpp b/modules/extra/m_mysql.cpp index ceb7af0ef..de8ed4f7d 100644 --- a/modules/extra/m_mysql.cpp +++ b/modules/extra/m_mysql.cpp @@ -1,9 +1,14 @@ /* RequiredLibraries: mysqlclient */ +/* RequiredWindowsLibraries: libmysql */ #include "module.h" #include "modules/sql.h" #define NO_CLIENT_LONG_LONG -#include <mysql/mysql.h> +#ifdef WIN32 +# include <mysql.h> +#else +# include <mysql/mysql.h> +#endif using namespace SQL; |