[asterisk-commits] seanbright: branch 1.4 r241932 - in /branches/1.4: configure configure.ac

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 21 09:25:49 CST 2010


Author: seanbright
Date: Thu Jan 21 09:25:46 2010
New Revision: 241932

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=241932
Log:
Fix configure check for PTHREAD_ONCE_INIT when manually adding -Wall to CFLAGS.

(closes issue #16666)
Reported by: romain_proformatique

Modified:
    branches/1.4/configure
    branches/1.4/configure.ac

Modified: branches/1.4/configure.ac
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/configure.ac?view=diff&rev=241932&r1=241931&r2=241932
==============================================================================
--- branches/1.4/configure.ac (original)
+++ branches/1.4/configure.ac Thu Jan 21 09:25:46 2010
@@ -357,8 +357,9 @@
 CFLAGS="${CFLAGS} -Werror -Wmissing-braces"
 AC_COMPILE_IFELSE(
   [AC_LANG_PROGRAM(
-    [#include <pthread.h>],
-	[pthread_once_t once = PTHREAD_ONCE_INIT;])
+    [#include <pthread.h>
+     void empty(){}],
+	[pthread_once_t once = PTHREAD_ONCE_INIT; pthread_once(&once, empty);])
   ],[
     AC_MSG_RESULT(no)
     ac_cv_pthread_once_needsbraces="no"




More information about the asterisk-commits mailing list