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 <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
#include <winsock2.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -165,6 +166,7 @@ int main(int argc, char **argv)
|
|||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
fprintf(f, "#include <sys/socket.h>\n");
|
fprintf(f, "#include <sys/socket.h>\n");
|
||||||
#else
|
#else
|
||||||
|
fprintf(f, "#include <winsock2.h>\n");
|
||||||
fprintf(f, "#include <ws2tcpip.h>\n");
|
fprintf(f, "#include <ws2tcpip.h>\n");
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@@ -249,10 +249,6 @@ struct sockaddr_dl;
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WS2TCPIP_H
|
|
||||||
#include <ws2tcpip.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_PATHS_H
|
#ifdef HAVE_PATHS_H
|
||||||
#include <paths.h>
|
#include <paths.h>
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user