include,c.h: include fcntl.h before check for O_CLOEXEC [smatch scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
56a987c998
commit
e9d00e66fb
|
@ -198,6 +198,7 @@ static inline int dirfd(DIR *d)
|
|||
/*
|
||||
* Fallback defines for old versions of glibc
|
||||
*/
|
||||
#include <fcntl.h>
|
||||
#ifndef O_CLOEXEC
|
||||
#define O_CLOEXEC 0
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue