]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
This previous change fixes the issue on 64bit but if trying to compile a 32bit build...
authorBrian West <brian@freeswitch.org>
Sat, 1 Mar 2014 16:20:48 +0000 (10:20 -0600)
committerBrian West <brian@freeswitch.org>
Sat, 1 Mar 2014 16:20:48 +0000 (10:20 -0600)
Commandline Fu for dumping the various defines for gcc are as follows:

gcc -m64 -dM -E - <<<''

gcc -m32 -dM -E - <<<''

src/include/switch_platform.h

index 501dfbab31ff245467061428f1d4cd936d12e9af..70450d15317ccfb5c253cae6b2777a09be8b7f93 100644 (file)
@@ -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