From 56e717859b739f6ae0c7b91d1afad5998406f3da Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 10 Apr 2009 15:07:19 +0200 Subject: [PATCH] Use sys/select.h for select() Should be more portable to modern systems and could be less portable to obsolete systems than the traditional sys/time.h sys/types.h unistd.h incantation. --- src/client/play.c | 3 +-- src/lib/empthread/pthread.c | 3 +-- src/lib/lwp/sel.c | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/client/play.c b/src/client/play.c index 36631290..5d1b63db 100644 --- a/src/client/play.c +++ b/src/client/play.c @@ -40,8 +40,7 @@ #include #include #ifndef _WIN32 -#include -#include +#include #include #else #include diff --git a/src/lib/empthread/pthread.c b/src/lib/empthread/pthread.c index fb1e09a9..319b272e 100644 --- a/src/lib/empthread/pthread.c +++ b/src/lib/empthread/pthread.c @@ -47,8 +47,7 @@ #include #include #include -#include -#include +#include #include #include "misc.h" #include "empthread.h" diff --git a/src/lib/lwp/sel.c b/src/lib/lwp/sel.c index 619d87c9..1209ac77 100644 --- a/src/lib/lwp/sel.c +++ b/src/lib/lwp/sel.c @@ -37,9 +37,8 @@ #include #include -#include +#include #include -#include #include "lwp.h" #include "lwpint.h" #include "prototypes.h"