Skip to content

Commit 47d0f7e

Browse files
henrikedinajdavis
authored andcommitted
CDRIVER-2826 Possible to build with ENABLE_SRV=OFF on Windows.
1 parent 7c49f06 commit 47d0f7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libmongoc/src/mongoc/mongoc-client.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
#include <WinDNS.h>
2424
#include <ws2tcpip.h>
2525
#else
26+
#if defined(MONGOC_HAVE_RES_NSEARCH) || defined(MONGOC_HAVE_RES_SEARCH)
2627
#include <netdb.h>
2728
#include <netinet/tcp.h>
28-
#if defined(MONGOC_HAVE_RES_NSEARCH) || defined(MONGOC_HAVE_RES_SEARCH)
2929
#include <arpa/nameser.h>
3030
#include <resolv.h>
3131
#include <bson/bson-string.h>

0 commit comments

Comments
 (0)