aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-08-01 23:35:19 +0000
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-08-01 23:36:39 +0000
commit4672059d948a3ad9701341b9686abd45301e057b (patch)
tree63ac7fb85fdc9887b30612bbe94c97c6d0096283 /openbsc/include
parenta2c41c42b1a8558965f201e43dcaec6bb8e64b35 (diff)
mgcp: Include enough socket data structures to build on freebsd
in_address is not 'accidently' included by FreeBSD when we include the osmocom/core/select.h header file. We need to include a bit more. In file included from mgcp_protocol.c:38: ../../include/openbsc/mgcp_internal.h:134:21: error: field has incomplete type 'struct sockaddr_in' struct sockaddr_in forward;
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/mgcp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/mgcp.h b/openbsc/include/openbsc/mgcp.h
index f334ac86b..fb16cb40f 100644
--- a/openbsc/include/openbsc/mgcp.h
+++ b/openbsc/include/openbsc/mgcp.h
@@ -30,6 +30,9 @@
#include "debug.h"
#include <arpa/inet.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
#define RTP_PORT_DEFAULT 4000
#define RTP_PORT_NET_DEFAULT 16000