|
Packit |
549fdc |
/* Substitute for <sys/uio.h>.
|
|
Packit |
549fdc |
Copyright (C) 2011-2016 Free Software Foundation, Inc.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
This program is free software; you can redistribute it and/or modify
|
|
Packit |
549fdc |
it under the terms of the GNU Lesser General Public License as published by
|
|
Packit |
549fdc |
the Free Software Foundation; either version 2.1, or (at your option)
|
|
Packit |
549fdc |
any later version.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
This program is distributed in the hope that it will be useful,
|
|
Packit |
549fdc |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
549fdc |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
549fdc |
GNU Lesser General Public License for more details.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
You should have received a copy of the GNU Lesser General Public License
|
|
Packit |
549fdc |
along with this program; if not, see <http://www.gnu.org/licenses/>. */
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# if __GNUC__ >= 3
|
|
Packit |
549fdc |
@PRAGMA_SYSTEM_HEADER@
|
|
Packit |
549fdc |
# endif
|
|
Packit |
549fdc |
@PRAGMA_COLUMNS@
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
#ifndef _@GUARD_PREFIX@_SYS_UIO_H
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
#if @HAVE_SYS_UIO_H@
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
/* On OpenBSD 4.4, <sys/uio.h> assumes prior inclusion of <sys/types.h>. */
|
|
Packit |
549fdc |
# include <sys/types.h>
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
/* The include_next requires a split double-inclusion guard. */
|
|
Packit |
549fdc |
# @INCLUDE_NEXT@ @NEXT_SYS_UIO_H@
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
#endif
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
#ifndef _@GUARD_PREFIX@_SYS_UIO_H
|
|
Packit |
549fdc |
#define _@GUARD_PREFIX@_SYS_UIO_H
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
#if !@HAVE_SYS_UIO_H@
|
|
Packit |
549fdc |
/* A platform that lacks <sys/uio.h>. */
|
|
Packit |
549fdc |
/* Get 'size_t' and 'ssize_t'. */
|
|
Packit |
549fdc |
# include <sys/types.h>
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# ifdef __cplusplus
|
|
Packit |
549fdc |
extern "C" {
|
|
Packit |
549fdc |
# endif
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# if !GNULIB_defined_struct_iovec
|
|
Packit |
549fdc |
/* All known platforms that lack <sys/uio.h> also lack any declaration
|
|
Packit |
549fdc |
of struct iovec in any other header. */
|
|
Packit |
549fdc |
struct iovec {
|
|
Packit |
549fdc |
void *iov_base;
|
|
Packit |
549fdc |
size_t iov_len;
|
|
Packit |
549fdc |
};
|
|
Packit |
549fdc |
# define GNULIB_defined_struct_iovec 1
|
|
Packit |
549fdc |
# endif
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
# ifdef __cplusplus
|
|
Packit |
549fdc |
}
|
|
Packit |
549fdc |
# endif
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
#endif
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
#endif /* _@GUARD_PREFIX@_SYS_UIO_H */
|
|
Packit |
549fdc |
#endif /* _@GUARD_PREFIX@_SYS_UIO_H */
|