aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io/unix.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2014-03-18 09:58:17 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2014-03-18 09:58:17 +0000
commitb5b58343505c66dcba0f45f4eefa04bd05d6755f (patch)
tree8296b4acc4cba130806c65f9898f5f88c18336c6 /libgfortran/io/unix.c
parente2110f8f2f75e6f30f7b5a5d94a65faeb9eb0629 (diff)
downloadgcc-b5b58343505c66dcba0f45f4eefa04bd05d6755f.zip
gcc-b5b58343505c66dcba0f45f4eefa04bd05d6755f.tar.gz
gcc-b5b58343505c66dcba0f45f4eefa04bd05d6755f.tar.bz2
configure.ac: Check for presence of fcntl.
* configure.ac: Check for presence of fcntl. * configure: Regenerate. * config.h.in: Regenerate. * io/unix.c (set_close_on_exec): Check for HAVE_FCNTL. From-SVN: r208634
Diffstat (limited to 'libgfortran/io/unix.c')
-rw-r--r--libgfortran/io/unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c
index 9f78b62..34c2d0c 100644
--- a/libgfortran/io/unix.c
+++ b/libgfortran/io/unix.c
@@ -1077,7 +1077,7 @@ static void __attribute__ ((unused))
set_close_on_exec (int fd __attribute__ ((unused)))
{
/* Mingw does not define F_SETFD. */
-#if defined(F_SETFD) && defined(FD_CLOEXEC)
+#if defined(HAVE_FCNTL) && defined(F_SETFD) && defined(FD_CLOEXEC)
if (fd >= 0)
fcntl(fd, F_SETFD, FD_CLOEXEC);
#endif