From: zgock Date: Thu, 10 Dec 2015 10:20:33 +0000 (+0900) Subject: Fix build issue on some configured kernels X-Git-Tag: spl-0.7.12~145 X-Git-Url: https://git.proxmox.com/?p=mirror_spl.git;a=commitdiff_plain;h=0da84d1574a9900b8a0a9b73cdc2588407262dfd 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 --- diff --git a/include/sys/time.h b/include/sys/time.h index 76ce5f0..6501661 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)