summaryrefslogtreecommitdiff
path: root/android/pan.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2014-09-19 16:10:12 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2014-09-24 21:31:13 +0300
commit56545bb25d07af11b12d2afddeb7e187aed8edbf (patch)
treea36bb80862defda0c3f1da1f434dddc418af8084 /android/pan.c
parent29ec84e8d21f85c85be3104e29274d5328b7868e (diff)
downloadbluez-56545bb25d07af11b12d2afddeb7e187aed8edbf.tar.gz
android/pan: Fix compilation error with musl
CC android/pan.o android/pan.c: In function 'bridge_if_down': android/pan.c:153:33: error: 'caddr_t' undeclared (first use in this function) err = ioctl(sk, SIOCSIFFLAGS, (caddr_t) &ifr); ^ android/pan.c:153:33: note: each undeclared identifier is reported only once for each function it appears in Makefile:5422: recipe for target 'android/pan.o' failed make[1]: *** [android/pan.o] Error 1
Diffstat (limited to 'android/pan.c')
-rw-r--r--android/pan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/android/pan.c b/android/pan.c
index d8572ccfd..6131890bd 100644
--- a/android/pan.c
+++ b/android/pan.c
@@ -34,6 +34,7 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/wait.h>
+#include <sys/types.h>
#include <net/if.h>
#include <linux/sockios.h>
#include <netinet/in.h>