aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-11-09 16:21:19 +0000
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-11-09 16:21:19 +0000
commitee6652b4bcc1bffc0b7c181666c4c1b30f5abad2 (patch)
treec9e3cabeceffe2d1ae5a8507ff75b4bd4cb4be7d
parentd56c3cbb2cbdd9b0114e325556cb5efc434b2894 (diff)
ipa: recv is declared in different headers on BSD
Include the headers mentioned by the manpage ipa.c:346:9: warning: implicit declaration of function 'recv' is invalid in C99 [-Wimplicit-function-declaration] ret = recv(fd, msg->tail, needed, 0);
-rw-r--r--src/gsm/ipa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gsm/ipa.c b/src/gsm/ipa.c
index dac20122..05e8967d 100644
--- a/src/gsm/ipa.c
+++ b/src/gsm/ipa.c
@@ -27,6 +27,8 @@
#include <stdlib.h>
#include <arpa/inet.h>
+#include <sys/types.h>
+#include <sys/socket.h>
#include <osmocom/core/msgb.h>
#include <osmocom/core/talloc.h>