Skip to content

Commit 91a1585

Browse files
committed
Remove _DARWIN_C_SOURCE definition for bundled sources on macOS
Reverts a change introduced in ab44b0c. This was previously in mongodb/mongo-c-driver#920 but removed before merging in mongodb/mongo-c-driver@9d2d8b1.
1 parent 6f080aa commit 91a1585

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

scripts/autotools/libbson/FindDependencies.m4

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ if test "$os_win32" != "yes"; then
22
PHP_MONGODB_BUNDLED_CFLAGS="$PHP_MONGODB_BUNDLED_CFLAGS -D_DEFAULT_SOURCE"
33
fi
44

5-
# Enable macOS extensions for strlcpy and arc4random
6-
if test "$os_darwin" = "yes"; then
7-
PHP_MONGODB_BUNDLED_CFLAGS="$PHP_MONGODB_BUNDLED_CFLAGS -D_DARWIN_C_SOURCE=1"
8-
fi
9-
105
# Check for strnlen()
116
dnl AC_CHECK_FUNC isn't properly respecting _XOPEN_SOURCE for strnlen for unknown reason
127
AC_SUBST(BSON_HAVE_STRNLEN, 0)

0 commit comments

Comments
 (0)