[sheepdog] [PATCH] sheepfs: use glibc's xattr header
Liu Yuan
namei.unix at gmail.com
Thu May 24 04:21:46 CEST 2012
From: Liu Yuan <tailai.ly at taobao.com>
Then we don't need install extra xattr devel package
Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
sheepfs/core.c | 2 +-
sheepfs/shadow_file.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sheepfs/core.c b/sheepfs/core.c
index 47999bb..873c318 100644
--- a/sheepfs/core.c
+++ b/sheepfs/core.c
@@ -14,7 +14,7 @@
#include <fuse.h>
#include <errno.h>
#include <sys/types.h>
-#include <attr/xattr.h>
+#include <sys/xattr.h>
#include <dirent.h>
#include <pthread.h>
#include <getopt.h>
diff --git a/sheepfs/shadow_file.c b/sheepfs/shadow_file.c
index fe1d367..e7b4878 100644
--- a/sheepfs/shadow_file.c
+++ b/sheepfs/shadow_file.c
@@ -21,7 +21,7 @@
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
-#include <attr/xattr.h>
+#include <sys/xattr.h>
#include <syslog.h>
#include <stdlib.h>
--
1.7.10.2
More information about the sheepdog
mailing list