]> Dogcows Code - chaz/tar/commitdiff
tar: port xattr-at.c to Solaris 10
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 6 Jan 2015 04:24:18 +0000 (20:24 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 6 Jan 2015 04:24:42 +0000 (20:24 -0800)
* lib/xattr-at.c (setxattrat, lsetxattrat, getxattrat, lgetxattrat)
(listxattrat, llistxattrat): Compile only if HAVE_XATTRS, so that
the code doesn't call functions that are not declared.

lib/xattr-at.c

index 443ccae48ff4f5fa2d57e0e926ad299a3d5ee37f..66427e9660bdbb18d91f7d5323375e44c1ff6447 100644 (file)
@@ -31,6 +31,8 @@
 
 #include "openat-priv.h"
 
+#ifdef HAVE_XATTRS
+
 /* setxattrat */
 #define AT_FUNC_NAME setxattrat
 #define AT_FUNC_F1 setxattr
 #undef AT_FUNC_RESULT
 #undef AT_FUNC_POST_FILE_PARAM_DECLS
 #undef AT_FUNC_POST_FILE_ARGS
+
+#endif /* HAVE_XATTRS */
This page took 0.018474 seconds and 4 git commands to generate.