Whamcloud - gitweb
LU-6073 tests: use sys/xattr.h in tests/*.c 97/13197/2
authorJohn L. Hammond <john.hammond@intel.com>
Mon, 29 Dec 2014 16:42:57 +0000 (10:42 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 4 Jan 2015 18:43:19 +0000 (18:43 +0000)
In lustre/tests/{multiop,orphan_linkea_check}.c include sys/xattr.h
rather than attr/xattr.h since the former is more likely to be
installed that the latter and provides the needed declarations.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I79b49233ab42566c8084c2070d0d75a6508656dc
Reviewed-on: http://review.whamcloud.com/13197
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Tested-by: Jenkins
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Blake Caldwell <blakec@ornl.gov>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/multiop.c
lustre/tests/orphan_linkea_check.c

index a7436ec..e42aeaa 100644 (file)
 #include <sys/mman.h>
 #include <sys/vfs.h>
 #include <sys/ioctl.h>
+#include <sys/xattr.h>
 #include <signal.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <semaphore.h>
 #include <time.h>
 #include <err.h>
-#include <attr/xattr.h>
 
 #include <lustre/lustre_idl.h>
 #include <lustre/lustreapi.h>
index ecc3ca7..ad189b3 100644 (file)
@@ -7,7 +7,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <fcntl.h>
-#include <attr/xattr.h>
+#include <sys/xattr.h>
 
 int
 main(int argc, char *argv[])