From cff514032b64b03a01a1519c233ef1b132a1d0aa Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Fri, 9 Oct 2020 02:26:49 -0700 Subject: [PATCH] freeswitch: fix compilation with musl 1.2.0 Signed-off-by: Rosen Penev --- net/freeswitch/Makefile | 2 +- net/freeswitch/patches/420-time.patch | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 net/freeswitch/patches/420-time.patch 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 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 -- 2.30.2