From 0a197a9dfed71915b50e112834c044c6d2351312 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 17 May 2011 01:45:49 -0400 Subject: Fix fileops.c build for old kernels --- libio/fileops.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libio') diff --git a/libio/fileops.c b/libio/fileops.c index 2b696ab..30de460 100644 --- a/libio/fileops.c +++ b/libio/fileops.c @@ -348,6 +348,7 @@ _IO_new_file_fopen (fp, filename, mode, is32not64) #ifndef __ASSUME_O_CLOEXEC if ((fp->_flags2 & _IO_FLAGS2_CLOEXEC) != 0 && __have_o_cloexec <= 0) { + int fd = _IO_fileno (fp); if (__have_o_cloexec == 0) { int flags = __fcntl (fd, F_GETFD); -- cgit v1.1