OSF/1 4.0 has a <sys/select.h> that lacks 'struct timeval'.
authorBruno Haible <bruno@clisp.org>
Sun, 28 Sep 2008 15:02:37 +0000 (17:02 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 28 Sep 2008 15:02:37 +0000 (17:02 +0200)
ChangeLog
doc/posix-headers/sys_select.texi
tests/test-sys_select.c

index d56488efa8797ee68c299927f0af096a8ee4839a..07bbfacb43e7f29322173314fb06af05f092ac52 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-09-28  Bruno Haible  <bruno@clisp.org>
+
+       * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
+       * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
+       Needed on OSF/1 4.0.
+
 2008-09-28  Bruno Haible  <bruno@clisp.org>
 
        Override open more carefully.
index b005c300e43ed8593d89ccddc33a9fb39ddbe221..6254288b61fa3eb458cb0117a5d61cfdd5c2e7c0 100644 (file)
@@ -17,4 +17,7 @@ This header file is not self-contained on some platforms: it requires
 
 Portability problems not fixed by Gnulib:
 @itemize
+@item
+This header file does not define @code{struct timeval} on some platforms:
+OSF/1 4.0.
 @end itemize
index 38f9fa76c9b1474e4fb929e709038702d3f27b4d..6bdd650831b85f0c905fe2607bf73ca274d62ea5 100644 (file)
@@ -22,6 +22,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <sys/select.h>
+#include <sys/time.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <fcntl.h>