diff options
-rwxr-xr-x | apps/Makefile | 4 | ||||
-rwxr-xr-x | apps/app_voicemail2.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/apps/Makefile b/apps/Makefile index 27d4494a0..c2c18df16 100755 --- a/apps/Makefile +++ b/apps/Makefile @@ -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: diff --git a/apps/app_voicemail2.c b/apps/app_voicemail2.c index 1a14708bf..990fcbb3c 100755 --- a/apps/app_voicemail2.c +++ b/apps/app_voicemail2.c @@ -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; |