diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-21 15:31:02 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-21 15:31:02 +0000 |
commit | 37619f6c7e8f53b888dbbed2b354d2ae9fa12fa0 (patch) | |
tree | cf0b763bc3bad02c917b88b5f459a063ce5ddb1b | |
parent | 4da3bbce9535275db0cb05c7044cf397ae62ee60 (diff) |
Merged revisions 241938 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r241938 | seanbright | 2010-01-21 10:27:42 -0500 (Thu, 21 Jan 2010) | 12 lines
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
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@241939 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | configure | 5 | ||||
-rw-r--r-- | configure.ac | 5 |
2 files changed, 6 insertions, 4 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac Revision: 235657 . +# From configure.ac Revision: 236633 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.64 for asterisk 1.6. # @@ -12596,10 +12596,11 @@ CFLAGS="${CFLAGS} -Werror -Wmissing-braces" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <pthread.h> + void empty(){} int main () { -pthread_once_t once = PTHREAD_ONCE_INIT; +pthread_once_t once = PTHREAD_ONCE_INIT; pthread_once(&once, empty); ; return 0; } diff --git a/configure.ac b/configure.ac index ea5c768d6..e9c39f541 100644 --- a/configure.ac +++ b/configure.ac @@ -481,8 +481,9 @@ saved_CFLAGS="${CFLAGS}" 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" |