aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/_types.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-05-26 16:29:55 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-05-26 16:29:55 +0000
commitb47efe07c40bd945b18f0c22b8e4874fc19ac43a (patch)
treecad5f7b61e4f04e0be01630daefea203eb0bef19 /sys/sys/_types.h
parent5d08768a2b4ca4e283e6ee487d619584ca3bae1d (diff)
downloadsrc-b47efe07c40bd945b18f0c22b8e4874fc19ac43a.tar.gz
src-b47efe07c40bd945b18f0c22b8e4874fc19ac43a.zip
Define a new __INO64 macro in <sys/_types.h>, to indicate the system
uses 64-bit inode numbers. Programs can use this to avoid including <sys/param.h>, with its associated namespace pollution. Reviewed by: kib
Notes
Notes: svn path=/head/; revision=318959
Diffstat (limited to 'sys/sys/_types.h')
-rw-r--r--sys/sys/_types.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/sys/_types.h b/sys/sys/_types.h
index 1dd7c7df4cf7..3c12fb905622 100644
--- a/sys/sys/_types.h
+++ b/sys/sys/_types.h
@@ -120,4 +120,11 @@ typedef union {
typedef __uintmax_t __rman_res_t;
+/*
+ * When the following macro is defined, the system uses 64-bit inode numbers.
+ * Programs can use this to avoid including <sys/param.h>, with its associated
+ * namespace pollution.
+ */
+#define __INO64
+
#endif /* !_SYS__TYPES_H_ */