From: Richard Levitte Date: Mon, 18 Nov 2002 23:05:39 +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_6h~18^2~23 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=450cee5c3a42337cb61387365a480228cee52967;hp=a2dbcf3644b0e2cd9baeed6c629bbbdfb97ca7d5 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 1d83adccfa..27f2e675cd 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -208,7 +208,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