changeset 30225:35bef5339516

OSF/1 4.0 has a <sys/select.h> that lacks 'struct timeval'.
author Bruno Haible <bruno@clisp.org>
date Sun, 28 Sep 2008 17:02:37 +0200
parents 24f91ed1cb43
children 051ed487f38b
files ChangeLog doc/posix-headers/sys_select.texi tests/test-sys_select.c
diffstat 3 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Sep 28 16:19:57 2008 +0200
+++ b/ChangeLog	Sun Sep 28 17:02:37 2008 +0200
@@ -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.
--- a/doc/posix-headers/sys_select.texi	Sun Sep 28 16:19:57 2008 +0200
+++ b/doc/posix-headers/sys_select.texi	Sun Sep 28 17:02:37 2008 +0200
@@ -17,4 +17,7 @@
 
 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
--- a/tests/test-sys_select.c	Sun Sep 28 16:19:57 2008 +0200
+++ b/tests/test-sys_select.c	Sun Sep 28 17:02:37 2008 +0200
@@ -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>