include sys/types.h as mandated by X/Open XPG 4.2; from agc@sde.uts.amdahl.com; netbs...
authorderaadt <deraadt@openbsd.org>
Thu, 23 Nov 1995 17:12:11 +0000 (17:12 +0000)
committerderaadt <deraadt@openbsd.org>
Thu, 23 Nov 1995 17:12:11 +0000 (17:12 +0000)
include/dirent.h

index f5301cb..920421b 100644 (file)
 #ifndef _DIRENT_H_
 #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.