NOODBC inverted to WITH_ODBC

This commit is contained in:
Vladimir Dubrovin committed 2026-05-08 20:30:14 +03:00
1 parent 7871279fae
commit 5fdd4a4d6f
14 files changed
+22 -22

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ void __stdcall CommandHandler( DWORD dwCommand )
conf.paused++;
Sleep(2000);
SetStatus( SERVICE_STOPPED, 0, 0 );
#ifndef NOODBC
#ifdef WITH_ODBC
_3proxy_mutex_lock(&log_mutex);
close_sql();
_3proxy_mutex_unlock(&log_mutex);
+1 -1
View File
@@ -334,7 +334,7 @@ static int h_log(int argc, unsigned char ** argv){
openlog((char *)conf.logtarget+1, LOG_PID, LOG_DAEMON);
#endif
}
#ifndef NOODBC
#ifdef WITH_ODBC
else if(*argv[1]=='&'){
conf.logfunc = logsql;
if(notchanged) return 0;
+1 -1
View File
@@ -561,7 +561,7 @@ static void * ef_server_log(struct node * node){
#ifndef _WIN32
else if(((struct srvparam *)node->value) -> logfunc == logsyslog) return "syslog";
#endif
#ifndef NOODBC
#ifdef WITH_ODBC
else if(((struct srvparam *)node->value) -> logfunc == logsql) return "odbc";
#endif
return NULL;
+1 -1
View File
@@ -1,7 +1,7 @@
/* plugin for 3proxy with PAM auth only for *NIX (linux,*bsd)
Kirill Lopuchov <lopuchov@mail.ru>
Compile with: gcc -shared -o pamauth.so pamauth.c -lpam -DNOODBC
Compile with: gcc -shared -o pamauth.so pamauth.c -lpam
*/
#include "../../structures.h"
+1 -1
View File
@@ -112,7 +112,7 @@ void daemonize(void);
#endif
#endif
#ifndef NOODBC
#ifdef WITH_ODBC
#ifndef _WIN32
#include <sqltypes.h>
#endif
+1 -1
View File
@@ -1,5 +1,5 @@
#include "proxy.h"
#ifndef NOODBC
#ifdef WITH_ODBC
SQLHENV henv = NULL;
SQLHSTMT hstmt = NULL;