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 <jow@openwrt.org>
This commit is contained in:
Jo-Philipp Wich 2015-06-25 17:42:58 +02:00
parent eb9adfd95d
commit 43c6d1e59e
2 changed files with 33 additions and 2 deletions

View file

@ -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. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=siproxd PKG_NAME:=siproxd
PKG_VERSION:=0.8.1 PKG_VERSION:=0.8.1
PKG_RELEASE:=4 PKG_RELEASE:=5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/siproxd PKG_SOURCE_URL:=@SF/siproxd

View file

@ -0,0 +1,31 @@
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -30,6 +30,7 @@
#include <resolv.h>
#include <string.h>
+#include <sys/types.h>
#include "log.h"
--- a/src/dejitter.c
+++ b/src/dejitter.c
@@ -21,6 +21,7 @@
#include "config.h"
#include <errno.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
--- a/src/plugins.c
+++ b/src/plugins.c
@@ -20,6 +20,8 @@
#include "config.h"
+#include <string.h>
+
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>