From: deraadt Date: Thu, 23 Nov 1995 17:12:11 +0000 (+0000) Subject: include sys/types.h as mandated by X/Open XPG 4.2; from agc@sde.uts.amdahl.com; netbs... X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3ab9281929a6f4a2fa68cc55c4cba22488bc2bc3;p=openbsd include sys/types.h as mandated by X/Open XPG 4.2; from agc@sde.uts.amdahl.com; netbsd pr#1785 --- diff --git a/include/dirent.h b/include/dirent.h index f5301cbb510..920421b565a 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -38,6 +38,13 @@ #ifndef _DIRENT_H_ #define _DIRENT_H_ +/* + * POSIX doesn't mandate this, but X/Open XPG 4.2 does. + */ +#ifndef _POSIX_SOURCE +#include +#endif + /* * The kernel defines the format of directory entries returned by * the getdirentries(2) system call.