From 1532c66198147389500331f6c4b88fb702dde74a Mon Sep 17 00:00:00 2001 From: Dabb Date: Fri, 29 Dec 2000 18:52:52 +0000 Subject: [PATCH] Replaced #ifndef WIN32 with #ifdef HAVE_UNISTD_H and HAVE_SYS_TIME_H --- source/cl_slist.c | 6 +++++- source/menu.c | 7 +++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/source/cl_slist.c b/source/cl_slist.c index c0c90d6..0a12a34 100644 --- a/source/cl_slist.c +++ b/source/cl_slist.c @@ -34,8 +34,12 @@ #endif #include -#ifndef WIN32 + +#ifdef HAVE_SYS_TIME_H #include +#endif + +#ifdef HAVE_UNISTD_H #include #endif diff --git a/source/menu.c b/source/menu.c index 2704bdb..59d97a3 100644 --- a/source/menu.c +++ b/source/menu.c @@ -30,8 +30,11 @@ # include "config.h" #endif -#ifndef _WIN32 +#ifdef HAVE_SYS_TIME_H #include +#endif + +#ifdef HAVE_UNISTD_H #include #endif @@ -56,7 +59,7 @@ #include "cl_input.h" #include "net.h" -#ifndef _WIN32 +#ifdef HAVE_NETINET_IN_H #include #endif