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:
Karel Zak 2011-09-12 13:53:10 +02:00
parent 56a987c998
commit e9d00e66fb
1 changed files with 1 additions and 0 deletions

View File

@ -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