From: Rosen Penev Date: Fri, 9 Oct 2020 09:26:49 +0000 (-0700) Subject: freeswitch: fix compilation with musl 1.2.0 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F580%2Fhead;p=feed%2Ftelephony.git freeswitch: fix compilation with musl 1.2.0 Signed-off-by: Rosen Penev --- 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