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 d56488e..07bbfac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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.
        * lib/open.c (orig_open): New function.
        (rpl_open): Use orig_open instead of open.
index b005c30..6254288 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 38f9fa7..6bdd650 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>