From: Bruno Haible <bruno@clisp.org> Date: Sun, 28 Sep 2008 15:02:37 +0000 (+0200) Subject: OSF/1 4.0 has a <sys/select.h> that lacks 'struct timeval'. X-Git-Tag: v0.1~6948 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=87ebcbbb9a743d61f5c5e3a5274476aff8426139;p=gnulib.git OSF/1 4.0 has a <sys/select.h> that lacks 'struct timeval'. --- diff --git a/ChangeLog b/ChangeLog index d56488efa8..07bbfacb43 100644 --- 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. diff --git a/doc/posix-headers/sys_select.texi b/doc/posix-headers/sys_select.texi index b005c300e4..6254288b61 100644 --- a/doc/posix-headers/sys_select.texi +++ b/doc/posix-headers/sys_select.texi @@ -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 diff --git a/tests/test-sys_select.c b/tests/test-sys_select.c index 38f9fa76c9..6bdd650831 100644 --- a/tests/test-sys_select.c +++ b/tests/test-sys_select.c @@ -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>