libpri: fix warning when building with musl

fix #warning redirecting incorrect #include <sys/signal.h> to <signal.h>

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2015-10-02 00:12:09 +02:00
parent 7d9f2ac613
commit f09b7600aa
2 changed files with 27 additions and 1 deletions

View 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/

View file

@ -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>