Skip to content

Commit

Permalink
Fix build issue on some configured kernels
Browse files Browse the repository at this point in the history
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 openzfs#510
  • Loading branch information
zgock authored and behlendorf committed Dec 11, 2015
1 parent 225c110 commit 0da84d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sys/time.h
Expand Up @@ -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)
Expand Down

0 comments on commit 0da84d1

Please sign in to comment.