diff options
Diffstat (limited to 'benchmarks/common')
-rw-r--r-- | benchmarks/common/syscalls.c | 3 | ||||
-rw-r--r-- | benchmarks/common/util.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/benchmarks/common/syscalls.c b/benchmarks/common/syscalls.c index fbbb880..a168ebf 100644 --- a/benchmarks/common/syscalls.c +++ b/benchmarks/common/syscalls.c @@ -4,10 +4,9 @@ #include <stdio.h> #include <limits.h> #include <machine/syscall.h> -#include "encoding.h" +#include "util.h" #define SYS_stats 1234 -#define static_assert(cond) switch(0) { case 0: case !!(long)(cond): ; } static long handle_frontend_syscall(long which, long arg0, long arg1, long arg2) { diff --git a/benchmarks/common/util.h b/benchmarks/common/util.h index ea06530..7c2a048 100644 --- a/benchmarks/common/util.h +++ b/benchmarks/common/util.h @@ -31,6 +31,8 @@ static void setStats(int enable) {} extern void setStats(int enable); #endif +#define static_assert(cond) switch(0) { case 0: case !!(long)(cond): ; } + static void printArray(const char name[], int n, const int arr[]) { #if HOST_DEBUG |