NetBSD needs to include sys/uio.h for some socket functions

Signed-off-by: Lennart Poettering <lennart@poettering.net>
This commit is contained in:
Jared D. McNeill 2009-01-22 01:37:19 +01:00 committed by Lennart Poettering
parent bb23932e9a
commit 75eeea65bd
3 changed files with 9 additions and 1 deletions

View file

@ -246,7 +246,7 @@ AC_HEADER_STDC
AC_CHECK_HEADERS([arpa/inet.h glob.h grp.h netdb.h netinet/in.h \ AC_CHECK_HEADERS([arpa/inet.h glob.h grp.h netdb.h netinet/in.h \
netinet/in_systm.h netinet/tcp.h poll.h pwd.h sched.h \ netinet/in_systm.h netinet/tcp.h poll.h pwd.h sched.h \
sys/mman.h sys/resource.h sys/select.h sys/socket.h sys/wait.h \ sys/mman.h sys/resource.h sys/select.h sys/socket.h sys/wait.h \
syslog.h sys/dl.h dlfcn.h linux/sockios.h]) sys/uio.h syslog.h sys/dl.h dlfcn.h linux/sockios.h])
AC_CHECK_HEADERS([netinet/ip.h], [], [], AC_CHECK_HEADERS([netinet/ip.h], [], [],
[#include <sys/types.h> [#include <sys/types.h>
#if HAVE_NETINET_IN_H #if HAVE_NETINET_IN_H

View file

@ -35,6 +35,10 @@
#include <sys/filio.h> #include <sys/filio.h>
#endif #endif
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
#include <pulsecore/core-error.h> #include <pulsecore/core-error.h>
#include <pulsecore/log.h> #include <pulsecore/log.h>
#include <pulsecore/macro.h> #include <pulsecore/macro.h>

View file

@ -38,6 +38,10 @@
#include <sys/filio.h> #include <sys/filio.h>
#endif #endif
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
#include <pulse/xmalloc.h> #include <pulse/xmalloc.h>
#include <pulsecore/core-error.h> #include <pulsecore/core-error.h>