summaryrefslogtreecommitdiffstats
path: root/sys/cddl/compat/opensolaris/sys/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cddl/compat/opensolaris/sys/time.h')
-rw-r--r--sys/cddl/compat/opensolaris/sys/time.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/cddl/compat/opensolaris/sys/time.h b/sys/cddl/compat/opensolaris/sys/time.h
index 770b251..0bf1e9b 100644
--- a/sys/cddl/compat/opensolaris/sys/time.h
+++ b/sys/cddl/compat/opensolaris/sys/time.h
@@ -40,6 +40,9 @@ typedef longlong_t hrtime_t;
#define LBOLT ((gethrtime() * hz) / NANOSEC)
+#define TIMESPEC_OVERFLOW(ts) \
+ ((ts)->tv_sec < INT32_MIN || (ts)->tv_sec > INT32_MAX)
+
#ifdef _KERNEL
#define lbolt64 (int64_t)(LBOLT)
OpenPOWER on IntegriCloud