]> sjero.net Git - linphone/commitdiff
Merge branch 'master' of git.savannah.nongnu.org:/srv/git/linphone
authorJehan Monnier <jehan.monnier@linphone.org>
Tue, 16 Nov 2010 07:46:05 +0000 (08:46 +0100)
committerJehan Monnier <jehan.monnier@linphone.org>
Tue, 16 Nov 2010 07:46:05 +0000 (08:46 +0100)
gtk/main.c

index 04aea71f07cfc39f14afbc1e9fb0760875e448ca..584db85e7a337f81179cb5ed8c4e433d656ad34f 100644 (file)
@@ -1309,7 +1309,7 @@ void linphone_gtk_log_handler(OrtpLogLevel lev, const char *fmt, va_list args){
        if (verbose){
                const char *lname="undef";
                char *msg;
-               #ifdef __linux
+       #if defined(__linux) || defined(__APPLE__)
                va_list cap;/*copy of our argument list: a va_list cannot be re-used (SIGSEGV on linux 64 bits)*/
                #endif
                switch(lev){
@@ -1331,7 +1331,7 @@ void linphone_gtk_log_handler(OrtpLogLevel lev, const char *fmt, va_list args){
                        default:
                                g_error("Bad level !");
                }
-#ifdef __linux
+#if defined(__linux) || defined(__APPLE__)
                va_copy(cap,args);
                msg=g_strdup_vprintf(fmt,cap);
                va_end(cap);