From 0da84d1574a9900b8a0a9b73cdc2588407262dfd Mon Sep 17 00:00:00 2001 From: zgock Date: Thu, 10 Dec 2015 19:20:33 +0900 Subject: [PATCH] Fix build issue on some configured kernels The SPL fails to build with some "Configured" kernels (ex. openSUSE xen Kernel) this change should make same binaries with C compiler optimization. Signed-off-by: zgock Signed-off-by: Brian Behlendorf Closes #510 --- include/sys/time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sys/time.h b/include/sys/time.h index 76ce5f03c769..650166145b1a 100644 --- a/include/sys/time.h +++ b/include/sys/time.h @@ -46,7 +46,7 @@ #define MSEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MILLISEC)) #define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC)) -#define hz HZ +static const int hz = HZ; #define TIMESPEC_OVERFLOW(ts) \ ((ts)->tv_sec < TIME_MIN || (ts)->tv_sec > TIME_MAX)