From: Brian West Date: Sat, 1 Mar 2014 16:20:48 +0000 (-0600) Subject: This previous change fixes the issue on 64bit but if trying to compile a 32bit build... X-Git-Tag: v1.5.11~179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02dd7772ba07e40f146a1b48d7e597fed4515728;p=thirdparty%2Ffreeswitch.git This previous change fixes the issue on 64bit but if trying to compile a 32bit build you end up breaking the types on 32bit. Commandline Fu for dumping the various defines for gcc are as follows: gcc -m64 -dM -E - <<<'' gcc -m32 -dM -E - <<<'' --- diff --git a/src/include/switch_platform.h b/src/include/switch_platform.h index 501dfbab31..70450d1531 100644 --- a/src/include/switch_platform.h +++ b/src/include/switch_platform.h @@ -275,7 +275,7 @@ typedef intptr_t switch_ssize_t; #endif -#ifdef __sun +#if defined(__sun__) && defined(__x86_64) #define SWITCH_TIME_T_FMT SWITCH_SIZE_T_FMT #else #define SWITCH_TIME_T_FMT SWITCH_INT64_T_FMT