From: Michael Jerris Date: Mon, 24 Feb 2014 21:19:51 +0000 (-0500) Subject: hack for smartos X-Git-Tag: v1.5.8~25^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6df9fc597f46162d4073550ce8abc542a47be0e8;p=thirdparty%2Ffreeswitch.git hack for smartos --- diff --git a/src/include/switch_platform.h b/src/include/switch_platform.h index 501dfbab31..5a64af81ed 100644 --- a/src/include/switch_platform.h +++ b/src/include/switch_platform.h @@ -253,8 +253,12 @@ typedef intptr_t switch_ssize_t; #endif #ifndef SWITCH_INT64_T_FMT +#ifdef __sun +#define SWITCH_INT64_T_FMT "ld" +#else #define SWITCH_INT64_T_FMT (sizeof (long) == 8 ? "ld" : "lld") #endif +#endif #ifndef SWITCH_UINT64_T_FMT #define SWITCH_UINT64_T_FMT (sizeof (long) == 8 ? "lu" : "llu")