summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev2020-10-09 09:26:49 +0000
committerRosen Penev2020-10-12 01:53:57 +0000
commitcff514032b64b03a01a1519c233ef1b132a1d0aa (patch)
tree0eabbe59a2a202ab8b196eba9b3cc15e9461737a
parente80afb1545e2da181b8b7b1f89555b79d95bbc73 (diff)
downloadtelephony-cff514032b64b03a01a1519c233ef1b132a1d0aa.tar.gz
freeswitch: fix compilation with musl 1.2.0
Signed-off-by: Rosen Penev <rosenp@gmail.com>
-rw-r--r--net/freeswitch/Makefile2
-rw-r--r--net/freeswitch/patches/420-time.patch16
2 files changed, 17 insertions, 1 deletions
diff --git a/net/freeswitch/Makefile b/net/freeswitch/Makefile
index 29f38bf..9885df0 100644
--- a/net/freeswitch/Makefile
+++ b/net/freeswitch/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=freeswitch
PKG_VERSION:=1.10.5
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
PKG_SOURCE:=freeswitch-$(PKG_VERSION).-release.tar.xz
diff --git a/net/freeswitch/patches/420-time.patch b/net/freeswitch/patches/420-time.patch
new file mode 100644
index 0000000..17d05bb
--- /dev/null
+++ b/net/freeswitch/patches/420-time.patch
@@ -0,0 +1,16 @@
+--- a/src/include/switch_platform.h
++++ b/src/include/switch_platform.h
+@@ -270,9 +270,13 @@ typedef intptr_t switch_ssize_t;
+ #if defined(__FreeBSD__) && SIZEOF_VOIDP == 4
+ #define TIME_T_FMT "d"
+ #else
++#if __USE_TIME_BITS64
++#define TIME_T_FMT SWITCH_INT64_T_FMT
++#else
+ #define TIME_T_FMT "ld"
+ #endif
+ #endif
++#endif
+
+
+ #if UINTPTR_MAX == 0xffffffffffffffff