From 75eeea65bd7007587a2465f014cacc9472f10bde Mon Sep 17 00:00:00 2001 From: "Jared D. McNeill" Date: Thu, 22 Jan 2009 01:37:19 +0100 Subject: NetBSD needs to include sys/uio.h for some socket functions Signed-off-by: Lennart Poettering --- configure.ac | 2 +- src/modules/rtp/rtp.c | 4 ++++ src/modules/rtp/sap.c | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1d891b71..57b3d924 100644 --- a/configure.ac +++ b/configure.ac @@ -246,7 +246,7 @@ AC_HEADER_STDC 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 \ 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], [], [], [#include #if HAVE_NETINET_IN_H diff --git a/src/modules/rtp/rtp.c b/src/modules/rtp/rtp.c index 88351010..c09c321f 100644 --- a/src/modules/rtp/rtp.c +++ b/src/modules/rtp/rtp.c @@ -35,6 +35,10 @@ #include #endif +#ifdef HAVE_SYS_UIO_H +#include +#endif + #include #include #include diff --git a/src/modules/rtp/sap.c b/src/modules/rtp/sap.c index b0c95aa5..7764f7bd 100644 --- a/src/modules/rtp/sap.c +++ b/src/modules/rtp/sap.c @@ -38,6 +38,10 @@ #include #endif +#ifdef HAVE_SYS_UIO_H +#include +#endif + #include #include -- cgit