dahdi-tools: fix compilation with musl 1.2.x 653/head
authorRosen Penev <rosenp@gmail.com>
Fri, 9 Jul 2021 00:11:03 +0000 (17:11 -0700)
committerRosen Penev <rosenp@gmail.com>
Fri, 9 Jul 2021 00:16:56 +0000 (17:16 -0700)
Missing header.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/dahdi-tools/Makefile
libs/dahdi-tools/patches/030-cdefs.patch [new file with mode: 0644]

index 81aad4eb86f022de6bafd73b913564ef9cc0684f..e37f6472aa7b44acc0cc29298b97d887c9bc030e 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dahdi-tools
 PKG_VERSION:=3.1.0
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/dahdi-tools/releases
diff --git a/libs/dahdi-tools/patches/030-cdefs.patch b/libs/dahdi-tools/patches/030-cdefs.patch
new file mode 100644 (file)
index 0000000..4778325
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/xpp/hexfile.h
++++ b/xpp/hexfile.h
+@@ -26,6 +26,7 @@
+ #include <stdarg.h>
+ #include <stdio.h>
+ #include <stdint.h>
++#include <sys/cdefs.h>
+ #include <sys/param.h>
+ #include <syslog.h>
+ #define       PACKED  __attribute__((packed))