[asterisk-commits] seanbright: trunk r241938 - in /trunk: ./ configure configure.ac

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


Author: seanbright
Date: Thu Jan 21 09:27:42 2010
New Revision: 241938

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=241938
Log:
Merged revisions 241932 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r241932 | seanbright | 2010-01-21 10:25:46 -0500 (Thu, 21 Jan 2010) | 5 lines
  
  Fix configure check for PTHREAD_ONCE_INIT when manually adding -Wall to CFLAGS.
  
  (closes issue #16666)
  Reported by: romain_proformatique
........

Modified:
    trunk/   (props changed)
    trunk/configure
    trunk/configure.ac

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/configure.ac
URL: http://svnview.digium.com/svn/asterisk/trunk/configure.ac?view=diff&rev=241938&r1=241937&r2=241938
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Thu Jan 21 09:27:42 2010
@@ -533,8 +533,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