From 273c624442ea51ae48d234c4d675434c197eb9aa Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 18 Nov 2002 23:05:50 +0000 Subject: [PATCH] Make sure sysconf exists (it doesn't in the VMS C RTL lesser than version 7). --- apps/speed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.25.1