From: Richard Levitte Date: Mon, 18 Nov 2002 23:05:50 +0000 (+0000) Subject: Make sure sysconf exists (it doesn't in the VMS C RTL lesser than version 7). X-Git-Tag: OpenSSL_0_9_7-beta4~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=273c624442ea51ae48d234c4d675434c197eb9aa;p=oweals%2Fopenssl.git Make sure sysconf exists (it doesn't in the VMS C RTL lesser than version 7). --- diff --git a/apps/speed.c b/apps/speed.c index 41fbaf36f7..b5e17a1f29 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -187,7 +187,8 @@ /* The following if from times(3) man page. It may need to be changed */ #ifndef HZ -# ifdef _SC_CLK_TCK +# if defined(_SC_CLK_TCK) \ + && (!defined(OPENSSL_SYS_VMS) || __CTRL_VER >= 70000000) # define HZ ((double)sysconf(_SC_CLK_TCK)) # else # ifndef CLK_TCK