summaryrefslogtreecommitdiff
path: root/lib/cloexec.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-07-01 20:55:29 +0000
committerJim Meyering <jim@meyering.net>2005-07-01 20:55:29 +0000
commit58076430c3324600ef5dba5505fbb2e1c5e02e03 (patch)
tree6d6484331407705aea0a84fc1826d1fb9f44a8b9 /lib/cloexec.c
parentceaa11b643fc2bfed8a57b3e1bc3f75a1ad3c7cd (diff)
downloadcoreutils-58076430c3324600ef5dba5505fbb2e1c5e02e03.tar.xz
Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
and don't include <sys/file.h>).
Diffstat (limited to 'lib/cloexec.c')
-rw-r--r--lib/cloexec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/cloexec.c b/lib/cloexec.c
index bc55d7521..79d4ed0b8 100644
--- a/lib/cloexec.c
+++ b/lib/cloexec.c
@@ -27,9 +27,7 @@
# include <unistd.h>
#endif
-#if HAVE_FCNTL_H
-# include <fcntl.h>
-#endif
+#include <fcntl.h>
#ifndef FD_CLOEXEC
# define FD_CLOEXEC 1