keepalived: fix musl compatibility 1404/head
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 17 Jun 2015 16:27:00 +0000 (18:27 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 17 Jun 2015 16:28:23 +0000 (18:28 +0200)
 - Add missing sys/types.h include to provide u_short type under musl

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
net/keepalived/Makefile
net/keepalived/patches/100-musl-compat.patch [new file with mode: 0644]

index 04a041fa08d0446537469f276235cc27c7488d95..b68c726bc3990a5379953b27d12fd43040d5731d 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=keepalived
 PKG_VERSION:=1.2.16
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:= http://www.keepalived.org/software
diff --git a/net/keepalived/patches/100-musl-compat.patch b/net/keepalived/patches/100-musl-compat.patch
new file mode 100644 (file)
index 0000000..9668c2b
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/lib/utils.h
++++ b/lib/utils.h
+@@ -31,6 +31,7 @@
+ #include <arpa/inet.h>
+ #include <arpa/nameser.h>
+ #include <sys/param.h>
++#include <sys/types.h>
+ #include <sys/utsname.h>
+ #include <netdb.h>