Skip to content

Commit b97de7d

Browse files
committed
CDRIVER-2013 Autotools may skip substitution of MONGOC_HAVE_SOCKLEN
1 parent 84ac14f commit b97de7d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build/autotools/FindDependencies.m4

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ AS_IF([test "$enable_rdtscp" = "yes"],
3535
AS_IF([test "$enable_shm_counters" = "yes"],
3636
[CPPFLAGS="$CPPFLAGS -DMONGOC_ENABLE_SHM_COUNTERS"])
3737

38-
AC_CHECK_TYPE([socklen_t], [AC_SUBST(MONGOC_HAVE_SOCKLEN, 1)], [], [#include <sys/socket.h>])
38+
AC_CHECK_TYPE([socklen_t],
39+
[AC_SUBST(MONGOC_HAVE_SOCKLEN, 1)],
40+
[AC_SUBST(MONGOC_HAVE_SOCKLEN, 0)],
41+
[#include <sys/socket.h>])
3942

4043
AX_PTHREAD

0 commit comments

Comments
 (0)