Make sure sysconf exists (it doesn't in the VMS C RTL lesser than version 7).
authorRichard Levitte <levitte@openssl.org>
Mon, 18 Nov 2002 23:05:39 +0000 (23:05 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 18 Nov 2002 23:05:39 +0000 (23:05 +0000)
apps/speed.c

index 1d83adc..27f2e67 100644 (file)
 
 /* 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