]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9185: fix format ifdefs for Solaris SPARC
authorSpencer Thomason <spencer@whiteskycommunications.com>
Fri, 20 May 2016 01:43:05 +0000 (18:43 -0700)
committerSpencer Thomason <spencer@whiteskycommunications.com>
Fri, 20 May 2016 01:43:05 +0000 (18:43 -0700)
Fix SWITCH_INT64_T_FMT and SWITCH_TIME_T_FMT definitions for Solaris/SPARC

FS-9185 #resolve

configure.ac
src/include/switch_platform.h

index efe5473ab09362da5719b4f5add7a0715cf48b5b..bfc55fa89e74e7e68e2055f329345a47d15dc13a 100644 (file)
@@ -1122,6 +1122,8 @@ elif test "$ac_cv_sizeof_long" = "8"; then
     case "$host" in
         *pc-solaris2*)
         ;;
+       sparc-*-solaris2*)
+       ;;
         *-solaris2*|*apple-darwin*|*-openbsd*)
            if test "$ac_cv_sizeof_long_long" = "8"; then
                int64_t_fmt='#define SWITCH_INT64_T_FMT "lld"'
index 933c4d36882932e409ca323cc63838871ba98061..962bf972b30213efa2601d04f50d2a9d70086b7c 100644 (file)
@@ -279,7 +279,7 @@ typedef intptr_t switch_ssize_t;
 
 #endif
 
-#if defined(__sun__) && defined(__x86_64)
+#if defined(__sun__) && (defined(__x86_64) || defined(__arch64__))
 #define SWITCH_TIME_T_FMT SWITCH_SIZE_T_FMT
 #else
 #define SWITCH_TIME_T_FMT SWITCH_INT64_T_FMT