Mercurial > hg > octave-kai > gnulib-hg
annotate lib/sys_uio.in.h @ 17249:e542fd46ad6f
maint: update all copyright year number ranges
Run "make update-copyright". Compare to commit 1602f0a from last year.
Signed-off-by: Eric Blake <eblake@redhat.com>
author | Eric Blake <eblake@redhat.com> |
---|---|
date | Tue, 01 Jan 2013 00:50:58 +0000 |
parents | bb182ee4a09d |
children |
rev | line source |
---|---|
14598 | 1 /* Substitute for <sys/uio.h>. |
17249
e542fd46ad6f
maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents:
16366
diff
changeset
|
2 Copyright (C) 2011-2013 Free Software Foundation, Inc. |
14598 | 3 |
4 This program is free software; you can redistribute it and/or modify | |
5 it under the terms of the GNU General Public License as published by | |
6 the Free Software Foundation; either version 2, or (at your option) | |
7 any later version. | |
8 | |
9 This program is distributed in the hope that it will be useful, | |
10 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 GNU General Public License for more details. | |
13 | |
14 You should have received a copy of the GNU General Public License | |
16366
bb182ee4a09d
maint: replace FSF snail-mail addresses with URLs
Paul Eggert <eggert@cs.ucla.edu>
parents:
16201
diff
changeset
|
15 along with this program; if not, see <http://www.gnu.org/licenses/>. */ |
14598 | 16 |
17 # if __GNUC__ >= 3 | |
18 @PRAGMA_SYSTEM_HEADER@ | |
19 # endif | |
20 @PRAGMA_COLUMNS@ | |
21 | |
14840
5f709022a256
Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents:
14662
diff
changeset
|
22 #ifndef _@GUARD_PREFIX@_SYS_UIO_H |
14598 | 23 |
24 #if @HAVE_SYS_UIO_H@ | |
25 | |
14662
69ca6b2ea292
sys_uio: Make <sys/uio.h> self-contained.
Bruno Haible <bruno@clisp.org>
parents:
14660
diff
changeset
|
26 /* On OpenBSD 4.4, <sys/uio.h> assumes prior inclusion of <sys/types.h>. */ |
69ca6b2ea292
sys_uio: Make <sys/uio.h> self-contained.
Bruno Haible <bruno@clisp.org>
parents:
14660
diff
changeset
|
27 # include <sys/types.h> |
69ca6b2ea292
sys_uio: Make <sys/uio.h> self-contained.
Bruno Haible <bruno@clisp.org>
parents:
14660
diff
changeset
|
28 |
14598 | 29 /* The include_next requires a split double-inclusion guard. */ |
30 # @INCLUDE_NEXT@ @NEXT_SYS_UIO_H@ | |
31 | |
32 #endif | |
33 | |
14840
5f709022a256
Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents:
14662
diff
changeset
|
34 #ifndef _@GUARD_PREFIX@_SYS_UIO_H |
5f709022a256
Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents:
14662
diff
changeset
|
35 #define _@GUARD_PREFIX@_SYS_UIO_H |
14598 | 36 |
37 #if !@HAVE_SYS_UIO_H@ | |
38 /* A platform that lacks <sys/uio.h>. */ | |
15599
d915252fc89d
Support for MSVC compiler: Ensure size_t gets defined.
Bruno Haible <bruno@clisp.org>
parents:
14840
diff
changeset
|
39 /* Get 'size_t' and 'ssize_t'. */ |
14598 | 40 # include <sys/types.h> |
41 | |
14660
fc75a382e7cd
sys_uio: Protect definition of 'struct iovec'.
Bruno Haible <bruno@clisp.org>
parents:
14598
diff
changeset
|
42 # ifdef __cplusplus |
fc75a382e7cd
sys_uio: Protect definition of 'struct iovec'.
Bruno Haible <bruno@clisp.org>
parents:
14598
diff
changeset
|
43 extern "C" { |
fc75a382e7cd
sys_uio: Protect definition of 'struct iovec'.
Bruno Haible <bruno@clisp.org>
parents:
14598
diff
changeset
|
44 # endif |
fc75a382e7cd
sys_uio: Protect definition of 'struct iovec'.
Bruno Haible <bruno@clisp.org>
parents:
14598
diff
changeset
|
45 |
fc75a382e7cd
sys_uio: Protect definition of 'struct iovec'.
Bruno Haible <bruno@clisp.org>
parents:
14598
diff
changeset
|
46 # if !GNULIB_defined_struct_iovec |
14598 | 47 /* All known platforms that lack <sys/uio.h> also lack any declaration |
48 of struct iovec in any other header. */ | |
49 struct iovec { | |
50 void *iov_base; | |
51 size_t iov_len; | |
52 }; | |
14660
fc75a382e7cd
sys_uio: Protect definition of 'struct iovec'.
Bruno Haible <bruno@clisp.org>
parents:
14598
diff
changeset
|
53 # define GNULIB_defined_struct_iovec 1 |
fc75a382e7cd
sys_uio: Protect definition of 'struct iovec'.
Bruno Haible <bruno@clisp.org>
parents:
14598
diff
changeset
|
54 # endif |
fc75a382e7cd
sys_uio: Protect definition of 'struct iovec'.
Bruno Haible <bruno@clisp.org>
parents:
14598
diff
changeset
|
55 |
fc75a382e7cd
sys_uio: Protect definition of 'struct iovec'.
Bruno Haible <bruno@clisp.org>
parents:
14598
diff
changeset
|
56 # ifdef __cplusplus |
fc75a382e7cd
sys_uio: Protect definition of 'struct iovec'.
Bruno Haible <bruno@clisp.org>
parents:
14598
diff
changeset
|
57 } |
fc75a382e7cd
sys_uio: Protect definition of 'struct iovec'.
Bruno Haible <bruno@clisp.org>
parents:
14598
diff
changeset
|
58 # endif |
fc75a382e7cd
sys_uio: Protect definition of 'struct iovec'.
Bruno Haible <bruno@clisp.org>
parents:
14598
diff
changeset
|
59 |
14598 | 60 #endif |
61 | |
14840
5f709022a256
Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents:
14662
diff
changeset
|
62 #endif /* _@GUARD_PREFIX@_SYS_UIO_H */ |
5f709022a256
Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents:
14662
diff
changeset
|
63 #endif /* _@GUARD_PREFIX@_SYS_UIO_H */ |