diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/extra/m_mysql.cpp | 9 | ||||
-rw-r--r-- | src/mysql_rpath.pl | 2 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index 654d84191..aef6abca9 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -19,15 +19,18 @@ using namespace std; #include <stdio.h> #include <string> #include <mysql.h> +#include <pthread.h> #include "users.h" #include "channels.h" #include "modules.h" #include "helperfuncs.h" -#include "m_sql.h" +#include "m_sqlv2.h" + +/* VERSION 2 API: With nonblocking (threaded) requests */ /* $ModDesc: SQL Service Provider module for all other m_sql* modules */ -/* $CompileFlags: `mysql_config --include` */ -/* $LinkerFlags: `mysql_config --libs` `perl ../mysql_rpath.pl` */ +/* $CompileFlags: -pthread `mysql_config --include` */ +/* $LinkerFlags: -pthread `mysql_config --libs_r` `perl ../mysql_rpath.pl` */ /** SQLConnection represents one mysql session. * Each session has its own persistent connection to the database. diff --git a/src/mysql_rpath.pl b/src/mysql_rpath.pl index 33da4f353..befa45a82 100644 --- a/src/mysql_rpath.pl +++ b/src/mysql_rpath.pl @@ -1,5 +1,5 @@ #!/usr/bin/perl -$data = `mysql_config --libs`; +$data = `mysql_config --libs_r`; $data =~ /-L(\S+)\s/; $libpath = $1; print "-Wl,--rpath -Wl,$libpath"; |