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:
parent
7d9f2ac613
commit
f09b7600aa
2 changed files with 27 additions and 1 deletions
|
@ -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/
|
||||
|
|
26
libs/libpri/patches/001-fix-include-signal-h-warning.patch
Normal file
26
libs/libpri/patches/001-fix-include-signal-h-warning.patch
Normal 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>
|
Loading…
Reference in a new issue