diff options
Diffstat (limited to 'lib/libspl')
-rw-r--r-- | lib/libspl/include/sys/time.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libspl/include/sys/time.h b/lib/libspl/include/sys/time.h index 03da3f7e3..f05fcaa1c 100644 --- a/lib/libspl/include/sys/time.h +++ b/lib/libspl/include/sys/time.h @@ -58,6 +58,15 @@ #define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC)) #endif +#ifndef NSEC2SEC +#define NSEC2SEC(n) ((n) / (NANOSEC / SEC)) +#endif + +#ifndef SEC2NSEC +#define SEC2NSEC(m) ((hrtime_t)(m) * (NANOSEC / SEC)) +#endif + + typedef long long hrtime_t; typedef struct timespec timestruc_t; typedef struct timespec timespec_t; |