]> granicus.if.org Git - spl/commitdiff
Fix build issue on some configured kernels
authorzgock <zgock@nuc.base.zgock-lab.net>
Thu, 10 Dec 2015 10:20:33 +0000 (19:20 +0900)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 11 Dec 2015 23:27:53 +0000 (15:27 -0800)
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 <zgock@nuc.base.zgock-lab.net>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #510

include/sys/time.h

index 76ce5f03c769dfd51b462875783a270b5dffe258..650166145b1accc1699a6d333cd836ef68edf956 100644 (file)
@@ -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)