Browse Source

include sys/types.h as mandated by X/Open XPG 4.2; from agc@sde.uts.amdahl.com; netbsd pr#1785

OPENBSD_2_0
deraadt 28 years ago
parent
commit
bacf6f7fd8
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      src/include/dirent.h

+ 7
- 0
src/include/dirent.h View File

@ -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 <sys/types.h>
#endif
/*
* The kernel defines the format of directory entries returned by
* the getdirentries(2) system call.


Loading…
Cancel
Save