Skip to content

Commit 6d6e0eb

Browse files
committed
PHPC-2477: BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES is obsolete
CDRIVER-2694 removed BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES
1 parent 083e33e commit 6d6e0eb

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

config.w32

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ if (PHP_MONGODB != "no") {
130130
BSON_OS: 2,
131131
BSON_HAVE_STDBOOL_H: 0,
132132
BSON_HAVE_STRINGS_H: 0,
133-
BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES: 0,
134133
BSON_HAVE_CLOCK_GETTIME: 0,
135134
BSON_HAVE_STRNLEN: 0,
136135
BSON_HAVE_SNPRINTF: 0,

scripts/autotools/libbson/FindDependencies.m4

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -96,26 +96,3 @@ AX_PTHREAD([
9696
],[
9797
AC_MSG_ERROR([libbson requires pthreads on non-Windows platforms.])
9898
])
99-
100-
101-
# The following is borrowed from the guile configure script.
102-
#
103-
# On past versions of Solaris, believe 8 through 10 at least, you
104-
# had to write "pthread_once_t foo = { PTHREAD_ONCE_INIT };".
105-
# This is contrary to POSIX:
106-
# http://www.opengroup.org/onlinepubs/000095399/functions/pthread_once.html
107-
# Check here if this style is required.
108-
#
109-
# glibc (2.3.6 at least) works both with or without braces, so the
110-
# test checks whether it works without.
111-
#
112-
AC_SUBST(BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES, 0)
113-
AC_CACHE_CHECK([whether PTHREAD_ONCE_INIT needs braces],
114-
bson_cv_need_braces_on_pthread_once_init,
115-
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>
116-
pthread_once_t foo = PTHREAD_ONCE_INIT;]])],
117-
[bson_cv_need_braces_on_pthread_once_init=no],
118-
[bson_cv_need_braces_on_pthread_once_init=yes])])
119-
if test "$bson_cv_need_braces_on_pthread_once_init" = yes; then
120-
AC_SUBST(BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES, 1)
121-
fi

0 commit comments

Comments
 (0)