about summary refs log tree commit diff
path: root/libio/fileops.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2011-05-17 01:45:49 -0400
committerUlrich Drepper <drepper@gmail.com>2011-05-17 01:45:49 -0400
commit0a197a9dfed71915b50e112834c044c6d2351312 (patch)
tree5fadc7ea64f31051979e544241296f097a31e46d /libio/fileops.c
parentee30c380b8f7c9253c87103c58c5201268d30181 (diff)
downloadglibc-0a197a9dfed71915b50e112834c044c6d2351312.tar.gz
glibc-0a197a9dfed71915b50e112834c044c6d2351312.tar.xz
glibc-0a197a9dfed71915b50e112834c044c6d2351312.zip
Fix fileops.c build for old kernels
Diffstat (limited to 'libio/fileops.c')
-rw-r--r--libio/fileops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libio/fileops.c b/libio/fileops.c
index 2b696ab1e0..30de460391 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);