diff options
author | Bruno Haible <bruno@clisp.org> | 2011-04-30 13:54:47 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-04-30 13:54:47 +0200 |
commit | 241bef9820b13a430987f9be926c7dc056aa7f38 (patch) | |
tree | 466bfed48031d72443c8e9dc6c7d6ff8b09655af | |
parent | 95bbafdb715dcfdbe7f629e2411b300ccaa84db4 (diff) | |
download | gnulib-241bef9820b13a430987f9be926c7dc056aa7f38.tar.gz |
sys_uio: Make <sys/uio.h> self-contained.
* lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
* doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | doc/posix-headers/sys_uio.texi | 4 | ||||
-rw-r--r-- | lib/sys_uio.in.h | 3 |
3 files changed, 13 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2011-04-30 Bruno Haible <bruno@clisp.org> + sys_uio: Make <sys/uio.h> self-contained. + * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>. + * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem. + +2011-04-30 Bruno Haible <bruno@clisp.org> + sys_socket: Ensure 'struct iovec' definition. * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have <sys/socket.h>. diff --git a/doc/posix-headers/sys_uio.texi b/doc/posix-headers/sys_uio.texi index bc4825400d..1f8c8a2c86 100644 --- a/doc/posix-headers/sys_uio.texi +++ b/doc/posix-headers/sys_uio.texi @@ -10,6 +10,10 @@ Portability problems fixed by Gnulib: @item This header file is missing on some platforms: mingw. +@item +This header file is not self-contained (it requires @code{<sys/types.h>} to be +included first) on some platforms: +OpenBSD 4.4. @end itemize Portability problems not fixed by Gnulib: diff --git a/lib/sys_uio.in.h b/lib/sys_uio.in.h index faad3de206..0eaff612a3 100644 --- a/lib/sys_uio.in.h +++ b/lib/sys_uio.in.h @@ -24,6 +24,9 @@ #if @HAVE_SYS_UIO_H@ +/* On OpenBSD 4.4, <sys/uio.h> assumes prior inclusion of <sys/types.h>. */ +# include <sys/types.h> + /* The include_next requires a split double-inclusion guard. */ # @INCLUDE_NEXT@ @NEXT_SYS_UIO_H@ |