Skip to content

Commit 0571e4b

Browse files
committed
Merge pull request #630
2 parents a0796cd + 1f3850d commit 0571e4b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

config.w32

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ if (PHP_MONGODB != "no") {
149149
MONGOC_ENABLE_SASL_SSPI: 0,
150150
MONGOC_HAVE_ASN1_STRING_GET0_DATA: 0,
151151
MONGOC_HAVE_SASL_CLIENT_DONE: 0,
152-
MONGOC_HAVE_SOCKLEN: 0,
152+
MONGOC_HAVE_SOCKLEN: 1,
153153
MONGOC_HAVE_WEAK_SYMBOLS: 0,
154154
MONGOC_NO_AUTOMATIC_GLOBALS: 1,
155155
MONGOC_SOCKET_ARG2: "struct sockaddr",
156-
MONGOC_SOCKET_ARG3: "int",
156+
MONGOC_SOCKET_ARG3: "socklen_t",
157157
MONGOC_CC: "",
158158
MONGOC_USER_SET_CFLAGS: "",
159159
MONGOC_USER_SET_LDFLAGS: ""
@@ -190,10 +190,6 @@ if (PHP_MONGODB != "no") {
190190
WARNING("mongodb libsasl support not enabled, libs not found");
191191
}
192192

193-
if (CHECK_FUNC_IN_HEADER("ws2tcpip.h", "socklen_t")) {
194-
mongoc_opts.MONGOC_HAVE_SOCKLEN = 1;
195-
}
196-
197193
if (typeof COMPILER_NAME === 'string') {
198194
mongoc_opts.MONGOC_CC = COMPILER_NAME;
199195
} else if (typeof VC_VERSIONS[VCVERS] === 'string') {

0 commit comments

Comments
 (0)