From 43c6d1e59e397938a4d8dda5e712775c33f63b34 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 25 Jun 2015 17:42:58 +0200 Subject: [PATCH] siproxd: fix musl compatibility - Add missing `sys/types.h` include to provide `u_short` type under musl - Add missing `string.h` includes to avoid implicit function declarations Signed-off-by: Jo-Philipp Wich --- net/siproxd/Makefile | 4 +-- net/siproxd/patches/100-musl-compat.patch | 31 +++++++++++++++++++++++ 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 net/siproxd/patches/100-musl-compat.patch diff --git a/net/siproxd/Makefile b/net/siproxd/Makefile index 57be9c5..a2d58a8 100644 --- a/net/siproxd/Makefile +++ b/net/siproxd/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2014 OpenWrt.org +# Copyright (C) 2014-2015 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=siproxd PKG_VERSION:=0.8.1 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/siproxd diff --git a/net/siproxd/patches/100-musl-compat.patch b/net/siproxd/patches/100-musl-compat.patch new file mode 100644 index 0000000..5e0c1da --- /dev/null +++ b/net/siproxd/patches/100-musl-compat.patch @@ -0,0 +1,31 @@ +--- a/src/resolve.c ++++ b/src/resolve.c +@@ -30,6 +30,7 @@ + + #include + #include ++#include + + #include "log.h" + +--- a/src/dejitter.c ++++ b/src/dejitter.c +@@ -21,6 +21,7 @@ + #include "config.h" + + #include ++#include + + #include + #include +--- a/src/plugins.c ++++ b/src/plugins.c +@@ -20,6 +20,8 @@ + + #include "config.h" + ++#include ++ + #include + #include + #include -- 2.30.2