summaryrefslogtreecommitdiffstats
path: root/sys/sys/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/types.h')
-rw-r--r--sys/sys/types.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/sys/types.h b/sys/sys/types.h
index f4bef46..f0c21f2 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -93,15 +93,14 @@ typedef u_int32_t uid_t; /* user id */
typedef int boolean_t;
typedef u_int64_t uoff_t;
typedef struct vm_page *vm_page_t;
-#endif
-
-#ifdef _KERNEL
struct specinfo;
typedef u_int32_t udev_t; /* device number */
typedef struct specinfo *dev_t;
+#define offsetof(type, field) __offsetof(type, field)
+
#else /* !_KERNEL */
typedef u_int32_t dev_t; /* device number */
OpenPOWER on IntegriCloud