From: Wouter Wijngaards Date: Wed, 15 Dec 2010 14:01:08 +0000 (+0000) Subject: ldns-test-edns works on windows. X-Git-Tag: release-1.6.8rc1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7ce33a86e1e0a1ebb1e29d4fe80469b164c6cbe;p=thirdparty%2Fldns.git ldns-test-edns works on windows. --- diff --git a/examples/ldns-test-edns.c b/examples/ldns-test-edns.c index 98b82065..ea03e741 100644 --- a/examples/ldns-test-edns.c +++ b/examples/ldns-test-edns.c @@ -213,6 +213,12 @@ int main(int argc, char **argv) { int i, r; +#ifdef USE_WINSOCK + WSADATA wsa_data; + if(WSAStartup(MAKEWORD(2,2), &wsa_data) != 0) { + printf("WSAStartup failed\n"); exit(1); + } +#endif if (argc < 2 || strncmp(argv[1], "-h", 3) == 0) { printf("Usage: ldns-test-edns {ip address}\n"); printf("Tests if the DNS cache at IP address supports EDNS.\n");