bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tar-1.24/gnulib: fdopendir.c C89 error


From: Christian Weisgerber
Subject: tar-1.24/gnulib: fdopendir.c C89 error
Date: Tue, 26 Oct 2010 16:34:37 +0200
User-agent: Mutt/1.4.2.3i

The gnu/fdopendir.c included with GNU tar 1.24 won't compile with a C89
compiler because it puts a declaration in between statements.

--- gnu/fdopendir.c.orig        Tue Oct 26 06:54:19 2010
+++ gnu/fdopendir.c     Tue Oct 26 06:54:52 2010
@@ -116,6 +116,7 @@ fdopendir_with_dup (int fd, int older_dupfd)
 static DIR *
 fd_clone_opendir (int fd)
 {
+  struct saved_cwd saved_cwd;
   int saved_errno;
   DIR *dir;
 
@@ -152,7 +153,6 @@ fd_clone_opendir (int fd)
           goto fail;
         }
 
-      struct saved_cwd saved_cwd;
       if (save_cwd (&saved_cwd) != 0)
         openat_save_fail (errno);
 
-- 
Christian "naddy" Weisgerber                          address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]