Windows: Older Windows SDKs need <winsock2.h>
Older SDKs need <winsock2.h> to be included before <ws2tcpip.h>
This commit is contained in:
@@ -42,6 +42,7 @@ RCSID("$Id$");
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#ifdef WIN32
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#endif
|
||||
|
||||
@@ -165,6 +166,7 @@ int main(int argc, char **argv)
|
||||
#ifndef WIN32
|
||||
fprintf(f, "#include <sys/socket.h>\n");
|
||||
#else
|
||||
fprintf(f, "#include <winsock2.h>\n");
|
||||
fprintf(f, "#include <ws2tcpip.h>\n");
|
||||
#endif
|
||||
#endif
|
||||
|
@@ -249,10 +249,6 @@ struct sockaddr_dl;
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_WS2TCPIP_H
|
||||
#include <ws2tcpip.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PATHS_H
|
||||
#include <paths.h>
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user