From b38914d3cfe8a94682f8203a378a3258fe88c512 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sun, 13 Mar 2016 00:11:27 +0100 Subject: [PATCH] minor changes to guarantee that the code is compatible to UNIX --- hermit/usr/benchmarks/stream.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hermit/usr/benchmarks/stream.c b/hermit/usr/benchmarks/stream.c index 65f5ebc91..acfaf6460 100644 --- a/hermit/usr/benchmarks/stream.c +++ b/hermit/usr/benchmarks/stream.c @@ -416,6 +416,7 @@ checktick() #include #include +#ifdef __hermit__ extern unsigned int get_cpufreq(); static unsigned long long start_tsc; @@ -430,10 +431,11 @@ __attribute__((constructor)) static void timer_init() { start_tsc = rdtsc(); } +#endif double mysecond() { -#if 0 +#ifndef __hermit__ struct timeval tp; struct timezone tzp; int i;