summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-06-02 16:15:00 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-06-02 16:15:00 +0000
commita3c23323291a4097528785217db12350df95bd3d (patch)
treecfbee1223010689ee36e159d00418c94e83cb968 /include
parent3949eeb6473dc9a94e5711f539a06ec2ac7e899b (diff)
XPG 4 apparently exposed d_ino and ino_t. Also, always pull in
<sys/_types.h> for the internal types ok matthew@
Diffstat (limited to 'include')
-rw-r--r--include/dirent.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/dirent.h b/include/dirent.h
index 4ff35215b52..76010568081 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dirent.h,v 1.30 2013/03/24 17:46:58 deraadt Exp $ */
+/* $OpenBSD: dirent.h,v 1.31 2013/06/02 16:14:59 guenther Exp $ */
/* $NetBSD: dirent.h,v 1.9 1995/03/26 20:13:37 jtc Exp $ */
/*-
@@ -40,8 +40,10 @@
/*
* POSIX doesn't mandate this, but X/Open XPG 4.2 does.
*/
-#if __BSD_VISIBLE || __XPG_VISIBLE >= 420
+#if __BSD_VISIBLE || __XPG_VISIBLE >= 400
#include <sys/types.h>
+#else
+#include <sys/_types.h>
#endif
/*