summaryrefslogtreecommitdiff
path: root/include/mach/time_value.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mach/time_value.h')
-rw-r--r--include/mach/time_value.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/mach/time_value.h b/include/mach/time_value.h
index 3a816b22..2984e88c 100644
--- a/include/mach/time_value.h
+++ b/include/mach/time_value.h
@@ -38,7 +38,6 @@ struct rpc_time_value {
rpc_long_integer_t seconds;
integer_t microseconds;
};
-typedef struct rpc_time_value rpc_time_value_t;
/*
* Time value used by kernel interfaces. Ideally they should be migrated
@@ -50,6 +49,12 @@ struct time_value {
};
typedef struct time_value time_value_t;
+#ifdef KERNEL
+typedef struct rpc_time_value rpc_time_value_t;
+#else
+typedef struct time_value rpc_time_value_t;
+#endif
+
/*
* Time value used internally by the kernel that uses 64 bits to track seconds
* and nanoseconds. Note that the current resolution is only microseconds.