]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
build: fix compile on Mac OS X Snow Leopard 10.6 (FSBUILD-178)
authorMichael Jerris <mike@jerris.com>
Thu, 23 Jul 2009 20:22:31 +0000 (20:22 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 23 Jul 2009 20:22:31 +0000 (20:22 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14333 d0543943-73ff-0310-b7d9-9358b9ac24b2

configure.in
src/switch_apr.c

index 8cc7e593e669cbef25ee64c248132557c859b08d..818611785c9b88451d2c1d78c8a996252fe4d381 100644 (file)
@@ -488,7 +488,7 @@ elif test "$ac_cv_sizeof_long" = "8"; then
     int64_value="long"
     long_value=long
     case "$host" in
-        *-solaris2*)
+        *-solaris2*|*apple-darwin*)
            if test "$ac_cv_sizeof_long_long" = "8"; then
                int64_t_fmt='#define SWITCH_INT64_T_FMT "lld"'
                uint64_t_fmt='#define SWITCH_UINT64_T_FMT "llu"'
index f622a1cb4815f1e6ef1dc938303d6526464a6117..fade0caf27f04d2e07838e401f21178fa1422931 100644 (file)
@@ -318,12 +318,12 @@ SWITCH_DECLARE(switch_time_t) switch_time_now(void)
 
 SWITCH_DECLARE(switch_status_t) switch_time_exp_gmt_get(switch_time_t *result, switch_time_exp_t *input)
 {
-       return apr_time_exp_gmt_get(result, (apr_time_exp_t *) input);
+       return apr_time_exp_gmt_get((apr_time_t *)result, (apr_time_exp_t *) input);
 }
 
 SWITCH_DECLARE(switch_status_t) switch_time_exp_get(switch_time_t *result, switch_time_exp_t *input)
 {
-       return apr_time_exp_get(result, (apr_time_exp_t *) input);
+       return apr_time_exp_get((apr_time_t *)result, (apr_time_exp_t *) input);
 }
 
 SWITCH_DECLARE(switch_status_t) switch_time_exp_lt(switch_time_exp_t *result, switch_time_t input)