summaryrefslogtreecommitdiffstats
path: root/src/gb/gprs_ns.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-07-12 14:13:41 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-07-12 14:13:41 +0200
commit3c16de295480f269a1610c6d2cc559718c39c202 (patch)
tree3eb64f911521cf102d80a27f8062af5de0bfb1d2 /src/gb/gprs_ns.c
parent3c6a2cef5ed692ba20a925357bbbae13ae8d80db (diff)
freebsd: Make libgb compile on FreeBSD
Include header files for recfrom/AF_INET and include a struct ip_hdr as it is not available on *BSD.
Diffstat (limited to 'src/gb/gprs_ns.c')
-rw-r--r--src/gb/gprs_ns.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gb/gprs_ns.c b/src/gb/gprs_ns.c
index cdee8338..aa7ff939 100644
--- a/src/gb/gprs_ns.c
+++ b/src/gb/gprs_ns.c
@@ -66,6 +66,8 @@
#include <errno.h>
#include <stdint.h>
+#include <sys/types.h>
+#include <sys/socket.h>
#include <arpa/inet.h>
#include <osmocom/core/msgb.h>