]> git.pond.sub.org Git - empserver/commitdiff
Use sys/select.h for select()
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 10 Apr 2009 13:07:19 +0000 (15:07 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 10 Apr 2009 17:09:58 +0000 (19:09 +0200)
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
src/lib/empthread/pthread.c
src/lib/lwp/sel.c

index 36631290a9cb5628a44b71da3310c005377eac48..5d1b63db25df5b3747505c17ebf8181d08e7c38c 100644 (file)
@@ -40,8 +40,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #ifndef _WIN32
-#include <sys/time.h>
-#include <sys/types.h>
+#include <sys/select.h>
 #include <unistd.h>
 #else
 #include <io.h>
index fb1e09a93044992224f710dbc3d82aedbc4d392f..319b272e433b384c2a12ffe89f4ea1ece4d4691b 100644 (file)
@@ -47,8 +47,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/types.h>
-#include <sys/time.h>
+#include <sys/select.h>
 #include <unistd.h>
 #include "misc.h"
 #include "empthread.h"
index 619d87c92be02dd44092869647c85c38c5358fcf..1209ac77aa10cba1fc556c11ef21f3201d9852e5 100644 (file)
@@ -37,9 +37,8 @@
 #include <config.h>
 
 #include <errno.h>
-#include <sys/time.h>
+#include <sys/select.h>
 #include <time.h>
-#include <unistd.h>
 #include "lwp.h"
 #include "lwpint.h"
 #include "prototypes.h"