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;
This commit is contained in:
Holger Hans Peter Freyther 2015-08-01 23:35:19 +00:00
parent a2c41c42b1
commit 4672059d94
1 changed files with 3 additions and 0 deletions

View File

@ -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