aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure5
-rw-r--r--configure.ac5
2 files changed, 6 insertions, 4 deletions
diff --git a/configure b/configure
index 1c7916ddf..347fb521c 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.ac Revision: 235659 .
+# From configure.ac Revision: 236635 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.64 for asterisk 1.6.
#
@@ -13060,10 +13060,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 e60528734..d785c6df9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -503,8 +503,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"