do not include unistd.h if vc++ is used

SVN revision: 39103
This commit is contained in:
Vincent Torri 2009-02-19 20:31:21 +00:00
parent 49f3d0134f
commit ca37104eb5
2 changed files with 8 additions and 2 deletions

View File

@ -6,9 +6,12 @@
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/mman.h>
#ifndef _MSC_VER
# include <unistd.h>
#endif
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif

View File

@ -36,9 +36,12 @@ void *alloca (size_t);
#include <string.h>
#include <fnmatch.h>
#include <fcntl.h>
#include <unistd.h>
#include <zlib.h>
#ifndef _MSC_VER
# include <unistd.h>
#endif
#ifdef HAVE_OPENSSL
#include <openssl/err.h>
#endif