telephony/net/freeswitch/patches/420-time.patch
Rosen Penev cff514032b
freeswitch: fix compilation with musl 1.2.0
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-10-11 18:53:57 -07:00

16 lines
365 B
Diff

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