summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzgock <[email protected]>2015-12-10 19:20:33 +0900
committerBrian Behlendorf <[email protected]>2015-12-11 15:27:53 -0800
commit0da84d1574a9900b8a0a9b73cdc2588407262dfd (patch)
tree30f6537c0248e0dc68e07983db3800fc36a4081d
parent225c110675631ddb0673323ee33818586c25cd67 (diff)
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 <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #510
-rw-r--r--include/sys/time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/time.h b/include/sys/time.h
index 76ce5f03c..650166145 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)