From: Spencer Thomason Date: Sat, 20 Aug 2016 00:45:04 +0000 (-0700) Subject: FS-9449: Enable clock calibration and clock_realtime on Solaris X-Git-Tag: v1.6.10~1^2~12^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5eb29d74d5ac727eb2a08c1e653e3f7e33aaacf;p=thirdparty%2Ffreeswitch.git FS-9449: Enable clock calibration and clock_realtime on Solaris --- diff --git a/src/switch.c b/src/switch.c index 942b5cd763..292baade79 100644 --- a/src/switch.c +++ b/src/switch.c @@ -504,8 +504,8 @@ int main(int argc, char *argv[]) char *arg_argv[128] = { 0 }; int alt_dirs = 0, alt_base = 0, log_set = 0, run_set = 0, do_kill = 0; int priority = 0; -#ifdef __sun - switch_core_flag_t flags = SCF_USE_SQL; +#if (defined(__SVR4) && defined(__sun)) + switch_core_flag_t flags = SCF_USE_SQL | SCF_CALIBRATE_CLOCK | SCF_USE_CLOCK_RT; #else switch_core_flag_t flags = SCF_USE_SQL | SCF_USE_AUTO_NAT | SCF_USE_NAT_MAPPING | SCF_CALIBRATE_CLOCK | SCF_USE_CLOCK_RT; #endif