summaryrefslogtreecommitdiffstats
path: root/lib/libspl/include/sys/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libspl/include/sys/time.h')
-rw-r--r--lib/libspl/include/sys/time.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/libspl/include/sys/time.h b/lib/libspl/include/sys/time.h
index f05fcaa1c..b3dd74dd5 100644
--- a/lib/libspl/include/sys/time.h
+++ b/lib/libspl/include/sys/time.h
@@ -51,14 +51,22 @@
#endif
#ifndef MSEC2NSEC
-#define MSEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MILLISEC))
+#define MSEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MILLISEC))
#endif
#ifndef NSEC2MSEC
-#define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC))
+#define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC))
#endif
-#ifndef NSEC2SEC
+#ifndef USEC2NSEC
+#define USEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / MICROSEC))
+#endif
+
+#ifndef NSEC2USEC
+#define NSEC2USEC(n) ((n) / (NANOSEC / MICROSEC))
+#endif
+
+#ifndef NSEC2SEC
#define NSEC2SEC(n) ((n) / (NANOSEC / SEC))
#endif