Blame gnulib-tests/sys_uio.in.h

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