aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/types.h')
-rw-r--r--sys/sys/types.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/sys/types.h b/sys/sys/types.h
index a0af2b946a45..45d59533e4b7 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -136,9 +136,19 @@ typedef __gid_t gid_t; /* group id */
typedef u_int32_t ino_t; /* inode number */
typedef __intrmask_t intrmask_t; /* Interrupt mask (spl, xxx_imask...) */
typedef long key_t; /* IPC key (for Sys V IPC) */
-typedef u_int16_t mode_t; /* permissions */
+
+#ifndef _MODE_T_DECLARED
+typedef __mode_t mode_t; /* permissions */
+#define _MODE_T_DECLARED
+#endif
+
typedef u_int16_t nlink_t; /* link count */
+
+#ifndef _OFF_T_DECLARED
typedef __off_t off_t; /* file offset */
+#define _OFF_T_DECLARED
+#endif
+
typedef __pid_t pid_t; /* process id */
typedef __register_t register_t;
typedef quad_t rlim_t; /* resource limit */