mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
Fix fileops.c build for old kernels
This commit is contained in:
parent
ee30c380b8
commit
0a197a9dfe
@ -1,3 +1,7 @@
|
||||
2011-05-16 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
|
||||
|
||||
2011-05-17 Ulrich Drepper <drepper@gmail.com>
|
||||
|
||||
[BZ #11837]
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user