From: Anthony Minessale Date: Thu, 10 May 2012 15:57:29 +0000 (-0500) Subject: fix bsd build issue X-Git-Tag: v1.2.0~454 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=787d81db320c8a34182570ad845efae2c7783eef;p=thirdparty%2Ffreeswitch.git fix bsd build issue --- diff --git a/src/include/switch_platform.h b/src/include/switch_platform.h index 3d1efe425d..a011850748 100644 --- a/src/include/switch_platform.h +++ b/src/include/switch_platform.h @@ -258,8 +258,12 @@ typedef intptr_t switch_ssize_t; #endif #ifndef TIME_T_FMT +#if defined(__FreeBSD__) && SIZEOF_VOIDP == 4 +#define TIME_T_FMT "d" +#else #define TIME_T_FMT "ld" #endif +#endif #endif