summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-23 17:12:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-23 17:12:12 +0000
commit5c86d6b6968b786c338d208cc4d55734189d38aa (patch)
tree9665632a363f70972e93453f1ad402f97c56b697
parent6ca85dceb0aeefcbad2e104df8430656b3f5a087 (diff)
include sys/types.h as mandated by X/Open XPG 4.2; from agc@sde.uts.amdahl.com; netbsd pr#1785
-rw-r--r--include/dirent.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/dirent.h b/include/dirent.h
index f5301cbb510..920421b565a 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -39,6 +39,13 @@
#define _DIRENT_H_
/*
+ * POSIX doesn't mandate this, but X/Open XPG 4.2 does.
+ */
+#ifndef _POSIX_SOURCE
+#include <sys/types.h>
+#endif
+
+/*
* The kernel defines the format of directory entries returned by
* the getdirentries(2) system call.
*/