Replaced #ifndef WIN32 with #ifdef HAVE_UNISTD_H and

HAVE_SYS_TIME_H
This commit is contained in:
Dabb 2000-12-29 18:52:52 +00:00
parent cc0e3dfbb5
commit 1532c66198
2 changed files with 10 additions and 3 deletions

View file

@ -34,8 +34,12 @@
#endif
#include <string.h>
#ifndef WIN32
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

View file

@ -30,8 +30,11 @@
# include "config.h"
#endif
#ifndef _WIN32
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
@ -56,7 +59,7 @@
#include "cl_input.h"
#include "net.h"
#ifndef _WIN32
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif