summaryrefslogtreecommitdiffstats
path: root/sys/sys/stat.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/stat.h')
-rw-r--r--sys/sys/stat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/stat.h b/sys/sys/stat.h
index c4376da..0f7f4a3 100644
--- a/sys/sys/stat.h
+++ b/sys/sys/stat.h
@@ -44,7 +44,9 @@
/* XXX missing blkcnt_t, blksize_t. */
#ifndef _DEV_T_DECLARED
+#ifndef _KERNEL
typedef __dev_t dev_t;
+#endif
#define _DEV_T_DECLARED
#endif
OpenPOWER on IntegriCloud