aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libspl/include/sys/time.h5
-rw-r--r--lib/libspl/include/sys/types.h4
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/libspl/include/sys/time.h b/lib/libspl/include/sys/time.h
index f0da440a2..03da3f7e3 100644
--- a/lib/libspl/include/sys/time.h
+++ b/lib/libspl/include/sys/time.h
@@ -58,6 +58,11 @@
#define NSEC2MSEC(n) ((n) / (NANOSEC / MILLISEC))
#endif
+typedef long long hrtime_t;
+typedef struct timespec timestruc_t;
+typedef struct timespec timespec_t;
+
+
extern hrtime_t gethrtime(void);
extern void gethrestime(timestruc_t *);
diff --git a/lib/libspl/include/sys/types.h b/lib/libspl/include/sys/types.h
index 25d56bed5..8996af96a 100644
--- a/lib/libspl/include/sys/types.h
+++ b/lib/libspl/include/sys/types.h
@@ -55,10 +55,6 @@ typedef longlong_t diskaddr_t;
typedef ulong_t pgcnt_t; /* number of pages */
typedef long spgcnt_t; /* signed number of pages */
-typedef longlong_t hrtime_t;
-typedef struct timespec timestruc_t;
-typedef struct timespec timespec_t;
-
typedef short pri_t;
typedef int zoneid_t;