freeswitch: fix compilation with musl 1.2.0

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-10-09 02:26:49 -07:00
parent e80afb1545
commit cff514032b
No known key found for this signature in database
GPG key ID: 36D31CFA845F0E3B
2 changed files with 17 additions and 1 deletions

View file

@ -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

View file

@ -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