diff options
| author | Jo-Philipp Wich <jow@openwrt.org> | 2015-06-25 17:49:36 +0200 |
|---|---|---|
| committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-06-25 17:50:33 +0200 |
| commit | b9ea1b0d7d75fa7192d5afb2e271c0c4272e6e2d (patch) | |
| tree | 0af2a3a3272f4b849d8cf222fd1fd2c62806daf1 /net/sipp | |
| parent | eb9adfd95d7780cd5e5d0a415c5bd0b6d888e275 (diff) | |
sipp: fix musl compatibility
Always include `sys/types.h` as it is basically required by anything besides
Glibc and uClibc. Fixes build against musl.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'net/sipp')
| -rw-r--r-- | net/sipp/Makefile | 4 | ||||
| -rw-r--r-- | net/sipp/patches/100-musl-compat.patch | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/net/sipp/Makefile b/net/sipp/Makefile index 967b568..fe8e1e1 100644 --- a/net/sipp/Makefile +++ b/net/sipp/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2013 OpenWrt.org +# Copyright (C) 2013-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:=sipp PKG_VERSION:=3.3.990 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/sipp diff --git a/net/sipp/patches/100-musl-compat.patch b/net/sipp/patches/100-musl-compat.patch new file mode 100644 index 0000000..c5e945f --- /dev/null +++ b/net/sipp/patches/100-musl-compat.patch @@ -0,0 +1,12 @@ +--- a/src/auth.c ++++ b/src/auth.c +@@ -22,9 +22,7 @@ + * Frederique Aurouet + */ + +-#if defined( __FreeBSD__) || defined(__DARWIN) || defined(__SUNOS) + #include <sys/types.h> +-#endif + #include <stdlib.h> + #include <stdio.h> + #include <string.h> |
