bridge-utils: fix musl compatibility
authorJo-Philipp Wich <redacted>
Tue, 16 Jun 2015 17:38:19 +0000 (19:38 +0200)
committerJo-Philipp Wich <redacted>
Tue, 16 Jun 2015 17:39:25 +0000 (19:39 +0200)
Add missing includes to libbridge.h to define struct timeval and the
required u_int*_t types under musl.

Signed-off-by: Jo-Philipp Wich <redacted>
net/bridge-utils/Makefile
net/bridge-utils/patches/100-musl-compat.patch [new file with mode: 0644]

index 7b9691cc915098471cb0a418e9e8138945236cf5..0075c0edb3a1adfa3849c3ca651babcebd1b4277 100644 (file)
@@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=bridge-utils
 PKG_VERSION:=1.5
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/shemminger/bridge-utils.git
diff --git a/net/bridge-utils/patches/100-musl-compat.patch b/net/bridge-utils/patches/100-musl-compat.patch
new file mode 100644 (file)
index 0000000..5655643
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/libbridge/libbridge.h
++++ b/libbridge/libbridge.h
+@@ -19,6 +19,8 @@
+ #ifndef _LIBBRIDGE_H
+ #define _LIBBRIDGE_H
++#include <sys/types.h>
++#include <sys/select.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <linux/if.h>
git clone https://git.99rst.org/PROJECT