Include <sys/types.h> directly rather than depending on <sys/fcntl.h>
to include it. This could be avoided by adding the necessary typedefs here, or by making users of <sys/file.h> include <sys/types.h> first.
This commit is contained in:
parent
f0771a984f
commit
117f87fe9f
@ -38,6 +38,7 @@
|
||||
#define _SYS_FILE_H_
|
||||
|
||||
#ifndef _KERNEL
|
||||
#include <sys/types.h> /* XXX */
|
||||
#include <sys/fcntl.h>
|
||||
#include <sys/unistd.h>
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user