diff options
author | 2014-05-05 16:06:55 +0000 | |
---|---|---|
committer | 2014-05-05 16:06:55 +0000 | |
commit | 3d7bed866c754188b1ca8a1705cb1dc636db9429 (patch) | |
tree | cf312d2eab4d220754db28c81eb4a6170f656c03 /lib/libssl/src | |
parent | validate the attribute length, too; from hshoexer; ok mikeb (diff) | |
download | wireguard-openbsd-3d7bed866c754188b1ca8a1705cb1dc636db9429.tar.xz wireguard-openbsd-3d7bed866c754188b1ca8a1705cb1dc636db9429.zip |
OpenBSD has_SC_CLK_TCK.
ok miod@
Diffstat (limited to 'lib/libssl/src')
-rw-r--r-- | lib/libssl/src/apps/apps.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/libssl/src/apps/apps.c b/lib/libssl/src/apps/apps.c index 5e6b94f84b7..b2efe6db39f 100644 --- a/lib/libssl/src/apps/apps.c +++ b/lib/libssl/src/apps/apps.c @@ -2454,7 +2454,6 @@ next_protos_parse(unsigned short *outlen, const char *in) */ /* app_tminterval section */ -#if defined(_SC_CLK_TCK) /* by means of unistd.h */ #include <sys/times.h> double @@ -2478,32 +2477,6 @@ app_tminterval(int stop, int usertime) return (ret); } -#else -#include <sys/time.h> -#include <sys/resource.h> - -double -app_tminterval(int stop, int usertime) -{ - double ret = 0; - struct rusage rus; - struct timeval now; - static struct timeval tmstart; - - if (usertime) - getrusage(RUSAGE_SELF, &rus), now = rus.ru_utime; - else - gettimeofday(&now, NULL); - - if (stop == TM_START) - tmstart = now; - else - ret = ((now.tv_sec + now.tv_usec * 1e-6) - - (tmstart.tv_sec + tmstart.tv_usec * 1e-6)); - - return ret; -} -#endif int app_isdir(const char *name) |