From: Marko Kreen Date: Fri, 1 Aug 2008 17:25:32 +0000 (+0000) Subject: sys/uio.h is required for struct iover on some systems X-Git-Tag: pgbouncer_1_2_2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=382c6b37b327c1d634e6ce070e3408443233253a;p=pgbouncer sys/uio.h is required for struct iover on some systems (eg. DragonFly) --- diff --git a/configure.ac b/configure.ac index 9790da3..ccdbd95 100644 --- a/configure.ac +++ b/configure.ac @@ -75,7 +75,7 @@ if test x"$GCC" = xyes; then fi dnl Checks for header files. -AC_CHECK_HEADERS([crypt.h sys/param.h sys/socket.h libgen.h pwd.h grp.h]) +AC_CHECK_HEADERS([crypt.h sys/param.h sys/socket.h sys/uio.h libgen.h pwd.h grp.h]) dnl ucred.h may have prereqs AC_CHECK_HEADERS([ucred.h sys/ucred.h], [], [], [ diff --git a/include/system.h b/include/system.h index eb9ef98..483f263 100644 --- a/include/system.h +++ b/include/system.h @@ -56,6 +56,9 @@ #ifdef HAVE_LIBGEN_H #include #endif +#ifdef HAVE_SYS_UIO_H +#include +#endif /* how to specify array with unknown length */ #if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)