Mercurial > hg > octave-kai > gnulib-hg
changeset 13825:bac537e8b09c
fdopendir: fix C89 compilation
* lib/fdopendir.c (fd_clone_opendir): Move declaration for older
compilers.
author | Christian Weisgerber <naddy@mips.inka.de> |
---|---|
date | Tue, 26 Oct 2010 08:57:35 -0600 |
parents | d5c7df915328 |
children | 061d4549f2bc |
files | ChangeLog lib/fdopendir.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-10-26 Christian Weisgerber <naddy@mips.inka.de> (tiny change) + + fdopendir: fix C89 compilation + * lib/fdopendir.c (fd_clone_opendir): Move declaration for older + compilers. + 2010-10-23 Paul Eggert <eggert@cs.ucla.edu> inttostr: simplify by removing unnecessary redundancy
--- a/lib/fdopendir.c +++ b/lib/fdopendir.c @@ -142,6 +142,7 @@ # else /* !REPLACE_FCHDIR */ /* Occupy the destination FD slot, so that save_cwd cannot hijack it. */ + struct saved_cwd saved_cwd; int fd_reserve = dup (fd); if (fd_reserve < 0) { @@ -150,7 +151,6 @@ goto fail; } - struct saved_cwd saved_cwd; if (save_cwd (&saved_cwd) != 0) openat_save_fail (errno);