Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
include sys/uio.h in check headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Yichao 'Peak' Ji committed Apr 9, 2017
1 parent a5eeed7 commit 33af8d3
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 12 deletions.
3 changes: 3 additions & 0 deletions deps/snappy/freebsd/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1

/* Define to 1 if you have the <sys/uio.h> header file. */
#define HAVE_SYS_UIO_H 1

/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1

Expand Down
4 changes: 2 additions & 2 deletions deps/snappy/freebsd/snappy-stubs-public.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include <stddef.h>
#endif

#if 0
#if 1
#include <sys/uio.h>
#endif

Expand Down Expand Up @@ -86,7 +86,7 @@ typedef std::string string;
void operator=(const TypeName&)
#endif

#if !0
#if !1
// Windows does not have an iovec type, yet the concept is universally useful.
// It is simple to define it ourselves, so we put it inside our own namespace.
struct iovec {
Expand Down
3 changes: 3 additions & 0 deletions deps/snappy/linux/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1

/* Define to 1 if you have the <sys/uio.h> header file. */
#define HAVE_SYS_UIO_H 1

/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1

Expand Down
4 changes: 2 additions & 2 deletions deps/snappy/linux/snappy-stubs-public.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include <stddef.h>
#endif

#if 0
#if 1
#include <sys/uio.h>
#endif

Expand Down Expand Up @@ -86,7 +86,7 @@ typedef std::string string;
void operator=(const TypeName&)
#endif

#if !0
#if !1
// Windows does not have an iovec type, yet the concept is universally useful.
// It is simple to define it ourselves, so we put it inside our own namespace.
struct iovec {
Expand Down
3 changes: 3 additions & 0 deletions deps/snappy/mac/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1

/* Define to 1 if you have the <sys/uio.h> header file. */
#define HAVE_SYS_UIO_H 1

/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1

Expand Down
4 changes: 2 additions & 2 deletions deps/snappy/mac/snappy-stubs-public.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include <stddef.h>
#endif

#if 0
#if 1
#include <sys/uio.h>
#endif

Expand Down Expand Up @@ -86,7 +86,7 @@ typedef std::string string;
void operator=(const TypeName&)
#endif

#if !0
#if !1
// Windows does not have an iovec type, yet the concept is universally useful.
// It is simple to define it ourselves, so we put it inside our own namespace.
struct iovec {
Expand Down
3 changes: 3 additions & 0 deletions deps/snappy/snappy-1.1.4/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H

/* Define to 1 if you have the <sys/uio.h> header file. */
#undef HAVE_SYS_UIO_H

/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H

Expand Down
2 changes: 1 addition & 1 deletion deps/snappy/snappy-1.1.4/configure
Original file line number Diff line number Diff line change
Expand Up @@ -16229,7 +16229,7 @@ _ACEOF
fi


for ac_header in stdint.h stddef.h sys/mman.h sys/resource.h windows.h byteswap.h sys/byteswap.h sys/endian.h sys/time.h
for ac_header in stdint.h stddef.h sys/uio.h sys/mman.h sys/resource.h windows.h byteswap.h sys/byteswap.h sys/endian.h sys/time.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Expand Down
2 changes: 1 addition & 1 deletion deps/snappy/snappy-1.1.4/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ AC_LANG([C++])
AC_C_BIGENDIAN
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_CHECK_HEADERS([stdint.h stddef.h sys/mman.h sys/resource.h windows.h byteswap.h sys/byteswap.h sys/endian.h sys/time.h])
AC_CHECK_HEADERS([stdint.h stddef.h sys/uio.h sys/mman.h sys/resource.h windows.h byteswap.h sys/byteswap.h sys/endian.h sys/time.h])

# Don't use AC_FUNC_MMAP, as it checks for mappings of already-mapped memory,
# which we don't need (and does not exist on Windows).
Expand Down
4 changes: 2 additions & 2 deletions deps/snappy/snappy-1.1.4/snappy-stubs-public.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include <stddef.h>
#endif

#if 0
#if 1
#include <sys/uio.h>
#endif

Expand Down Expand Up @@ -86,7 +86,7 @@ typedef std::string string;
void operator=(const TypeName&)
#endif

#if !0
#if !1
// Windows does not have an iovec type, yet the concept is universally useful.
// It is simple to define it ourselves, so we put it inside our own namespace.
struct iovec {
Expand Down
3 changes: 3 additions & 0 deletions deps/snappy/solaris/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1

/* Define to 1 if you have the <sys/uio.h> header file. */
#define HAVE_SYS_UIO_H 1

/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1

Expand Down
4 changes: 2 additions & 2 deletions deps/snappy/solaris/snappy-stubs-public.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include <stddef.h>
#endif

#if 0
#if 1
#include <sys/uio.h>
#endif

Expand Down Expand Up @@ -86,7 +86,7 @@ typedef std::string string;
void operator=(const TypeName&)
#endif

#if !0
#if !1
// Windows does not have an iovec type, yet the concept is universally useful.
// It is simple to define it ourselves, so we put it inside our own namespace.
struct iovec {
Expand Down

0 comments on commit 33af8d3

Please sign in to comment.