libpri: fix warning when building with musl
authorDaniel Golle <daniel@makrotopia.org>
Thu, 1 Oct 2015 22:12:09 +0000 (00:12 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 1 Oct 2015 22:12:09 +0000 (00:12 +0200)
fix #warning redirecting incorrect #include <sys/signal.h> to <signal.h>

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libs/libpri/Makefile
libs/libpri/patches/001-fix-include-signal-h-warning.patch [new file with mode: 0644]

index 079f4fb994a38fb1a3d3b413b072c6b8d9d0c72f..becf8f95eda6d1ff46657353b5bdcfa405c09528 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libpri
 PKG_VERSION:=1.4.15
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/libpri/
diff --git a/libs/libpri/patches/001-fix-include-signal-h-warning.patch b/libs/libpri/patches/001-fix-include-signal-h-warning.patch
new file mode 100644 (file)
index 0000000..23ba2b7
--- /dev/null
@@ -0,0 +1,26 @@
+Index: libpri-1.4.15/pritest.c
+===================================================================
+--- libpri-1.4.15.orig/pritest.c
++++ libpri-1.4.15/pritest.c
+@@ -41,7 +41,7 @@
+ #include <sys/ioctl.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+-#include <sys/signal.h>
++#include <signal.h>
+ #include <sys/select.h>
+ #include <sys/wait.h>
+ #include <sys/resource.h>
+Index: libpri-1.4.15/testprilib.c
+===================================================================
+--- libpri-1.4.15.orig/testprilib.c
++++ libpri-1.4.15/testprilib.c
+@@ -41,7 +41,7 @@
+ #include <sys/ioctl.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+-#include <sys/signal.h>
++#include <signal.h>
+ #include <sys/select.h>
+ #include <sys/wait.h>
+ #include <sys/resource.h>