Voicemail/mysql updates

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2003-11-05 05:42:23 +00:00
parent d387ca7779
commit 2768a55b02
2 changed files with 9 additions and 2 deletions

View File

@ -42,6 +42,10 @@ ifeq ($(USE_POSTGRES_VM_INTERFACE),1)
CFLAGS+=-DUSEPOSTGRESVM
endif
ifeq ($(USE_MYSQL_VM_INTERFACE),1)
CFLAGS+=-DUSEMYSQLVM
endif
all: $(APPS)
clean:

View File

@ -38,8 +38,7 @@
/* we define USESQLVM when we have MySQL or POSTGRES */
#ifdef USEMYSQLVM
#include <mysql.h>
#include "mysql-vm-routines.h"
#include <mysql/mysql.h>
#define USESQLVM 1
#endif
@ -199,6 +198,10 @@ static void apply_options(struct ast_vm_user *vmu, char *options)
}
#ifdef USEMYSQLVM
#include "mysql-vm-routines.h"
#endif
#ifdef USEPOSTGRESVM
PGconn *dbhandler;