From eb0de8f1140bea0d777af2c7cee426e54508077b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 17 Jun 2015 19:38:55 +0200 Subject: [PATCH] wifidog: fix musl compatibility - Fix missing `fcntl.h` in `protocol.c` - Replace nonstandard `sys/unistd.h` includes with `unistd.h` ones Signed-off-by: Jo-Philipp Wich --- net/wifidog/Makefile | 2 +- net/wifidog/patches/100-musl-compat.patch | 47 +++++++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 net/wifidog/patches/100-musl-compat.patch diff --git a/net/wifidog/Makefile b/net/wifidog/Makefile index ade7606c3d..ddc2bb1fae 100644 --- a/net/wifidog/Makefile +++ b/net/wifidog/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=wifidog PKG_VERSION:=1.2.1 -PKG_RELEASE=1 +PKG_RELEASE=2 PKG_LICENSE:=GPL-2.0 diff --git a/net/wifidog/patches/100-musl-compat.patch b/net/wifidog/patches/100-musl-compat.patch new file mode 100644 index 0000000000..599c1fefdc --- /dev/null +++ b/net/wifidog/patches/100-musl-compat.patch @@ -0,0 +1,47 @@ +--- a/libhttpd/protocol.c ++++ b/libhttpd/protocol.c +@@ -28,6 +28,7 @@ + + #if defined(_WIN32) + #else ++#include + #include + #include + #endif +--- a/src/firewall.c ++++ b/src/firewall.c +@@ -35,7 +35,6 @@ + #include + #include + #include +-#include + + #include + +--- a/src/client_list.c ++++ b/src/client_list.c +@@ -31,9 +31,9 @@ + #include + #include + #include ++#include + #include + #include +-#include + + #include + +--- a/src/util.c ++++ b/src/util.c +@@ -33,10 +33,10 @@ + #include + #include + #include ++#include + #include + #include + #include +-#include + #include + #include + #include -- 2.30.2