Exclude socket.h on Windows (unless using Cygwin)

This commit is contained in:
Frère Jérôme 2015-11-19 09:55:23 +01:00
parent 584f74dbd9
commit 2f19dc69b1

View file

@ -65,7 +65,9 @@ typedef unsigned long size_t;
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#if !(defined _WIN32) || defined(__CYGWIN__)
#include <sys/socket.h>
#endif
#include <sys/stat.h>
#include <sys/types.h>
#include <math.h>