Fix mysql build issue
authorMark Spencer <markster@digium.com>
Thu, 21 Aug 2003 23:19:56 +0000 (23:19 +0000)
committerMark Spencer <markster@digium.com>
Thu, 21 Aug 2003 23:19:56 +0000 (23:19 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1398 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/Makefile
apps/app_voicemail2.c

index 3f73831..5c82d81 100755 (executable)
@@ -54,7 +54,6 @@ app_todd.so: app_todd.o
 
 ifeq (${USE_MYSQL_VM_INTERFACE}, 1)
 app_voicemail2.o: app_voicemail2.c
-       $(CC) -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -O6 -g  -Iinclude -I../include -DUSEMYSQLVM=\"1\" -D_REENTRANT -D_GNU_SOURCE -march=i686  -DASTERISK_VERSION=\"CVS-07/21/02-14:49:14\" -DDO_CRASH -DDEBUG_THREADS     -c -o app_voicemail2.o app_voicemail2.c
 
 app_voicemail2.so : app_voicemail2.o
        $(CC) -shared -Xlinker -x -o $@ $< -L/usr/lib/mysql -lmysqlclient
index 12a5ac9..a497a79 100755 (executable)
@@ -197,7 +197,7 @@ static int mysql_login(void)
                ast_log(LOG_WARNING, "Error Logging into database\n");
                return(-1);
        }
-       pthread_mutex_init(&mysqllock, NULL);
+       ast_mutex_init(&mysqllock, NULL);
        return(0);
 }