From 6cdf6f2a3f67ce56d13b64a64a2a192f51ac445c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 17 Jan 2005 12:53:04 +0000 Subject: [PATCH] Fix MAC compilation --- src/eventl.c | 23 +++++++++++++++++------ src/srwutil.c | 2 +- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/eventl.c b/src/eventl.c index dbe72d4..1efe41f 100644 --- a/src/eventl.c +++ b/src/eventl.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: eventl.c,v 1.5 2005-01-15 19:47:13 adam Exp $ + * $Id: eventl.c,v 1.6 2005-01-17 12:53:04 adam Exp $ */ /** @@ -13,16 +13,27 @@ * Server. It uses select(2). */ -#include #include +#include +#include +#include +#include + +#if HAVE_SYS_TYPES_H +#include +#endif +#if HAVE_SYS_TIME_H +#include +#endif #ifdef WIN32 #include -#else +#endif +#if HAVE_UNISTD_H #include #endif -#include -#include -#include +#if HAVE_SYS_SELECT_H +#include +#endif #include #include diff --git a/src/srwutil.c b/src/srwutil.c index e7afb51..ae47de9 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: srwutil.c,v 1.25 2005-01-17 10:19:48 adam Exp $ + * $Id: srwutil.c,v 1.26 2005-01-17 12:53:04 adam Exp $ */ /** * \file srwutil.c -- 1.7.10.4