Blame src/gl/sys_uio.in.h

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