From 221934729eba613b1a845771a0a6aabf3eb6390c Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 21 Jul 2006 17:56:07 +0000 Subject: Change includes, use --libs_r rather than mysql_config --libs, we want re-enterant libs for pthreads git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4477 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_mysql.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/modules/extra') 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 #include #include +#include #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. -- cgit v1.2.3