]> 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>
Tue, 18 Oct 2011 12:22:26 +0000 (14:22 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
include/c.h

index a9cd1f3f5e29fab509b2334629c1201f75547b4f..655334affba44a412b7bb181e551d24fe3b4a371 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