]> Dogcows Code - chaz/tar/commitdiff
tar: port to --without-xattrs --enable-gcc-warnings
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 25 Apr 2013 04:06:38 +0000 (21:06 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 25 Apr 2013 04:06:54 +0000 (21:06 -0700)
Reported by Pavel Raiskup in
<http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00029.html>.
* src/xattrs.c (xattrs__fd_set) [!HAVE_XATTRS]: Omit.

src/xattrs.c

index 4440b340dbb6ed9a969a9d1c452e943ccd52028d..dac15f38133b447130cc35c4e2cc266f2a4b5096 100644 (file)
@@ -484,6 +484,7 @@ xattrs_xattrs_get (int parentfd, char const *file_name,
     }
 }
 
+#ifdef HAVE_XATTRS
 static void
 xattrs__fd_set (struct tar_stat_info const *st,
                 char const *file_name, char typeflag,
@@ -509,6 +510,7 @@ xattrs__fd_set (struct tar_stat_info const *st,
                  sysname, attr, file_name));
     }
 }
+#endif
 
 /* lgetfileconat is called against FILE_NAME iff the FD parameter is set to
    zero, otherwise the fgetfileconat is used against correct file descriptor */
This page took 0.019223 seconds and 4 git commands to generate.