Include <winsock2.h> only through "sys/socket.h"

Because we need to #undef NS_ALL after <winsock2.h>, and want to do
that in just one place.
This commit is contained in:
Markus Armbruster 2009-04-18 18:16:22 +02:00
parent 58e34ebe3d
commit 39398997fe

View file

@ -52,14 +52,13 @@
#include <stdarg.h>
#include <sys/types.h>
#include <time.h>
#include <winsock2.h>
#undef NS_ALL
#include <windows.h>
#include <process.h>
#include "misc.h"
#include "empthread.h"
#include "prototypes.h"
#include "server.h"
#include "sys/socket.h"
#define loc_MIN_THREAD_STACK 16384