]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include,c.h: include fcntl.h before check for O_CLOEXEC [smatch scan]
authorKarel Zak <kzak@redhat.com>
Mon, 12 Sep 2011 11:53:10 +0000 (13:53 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 12 Sep 2011 11:53:10 +0000 (13:53 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
include/c.h

index 975cc1bf4c54998921b7b94f864cd1047db2bdf2..cecd05d47030a2cdd5fe1895cd6cf47b8ef436f4 100644 (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