From 272dfb00a9bdb9d537183dd0cfed83f698f5351a Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Tue, 10 Aug 2010 02:42:01 +0000 Subject: core,glusterd: Solaris getxattr build fix Signed-off-by: Shehjar Tikoo Signed-off-by: Anand V. Avati BUG: 1178 (Gluster mainline build fails on Solaris) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1178 --- cli/src/cli3_1-cops.c | 3 ++- libglusterfs/src/compat.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/src/cli3_1-cops.c b/cli/src/cli3_1-cops.c index 929f490c2..210c881b6 100644 --- a/cli/src/cli3_1-cops.c +++ b/cli/src/cli3_1-cops.c @@ -32,6 +32,7 @@ #include "cli1.h" #include "protocol-common.h" #include "cli-mem-types.h" +#include "compat.h" extern rpc_clnt_prog_t *cli_rpc_prog; extern int cli_op_ret; @@ -736,7 +737,7 @@ gf_cli3_1_replace_brick_cbk (struct rpc_req *req, struct iovec *iov, gf_log ("", GF_LOG_DEBUG, "sending getxattr"); - ret = getxattr ("/tmp/mnt/", "trusted.glusterfs.pump.status", status_msg, 8192); + ret = lgetxattr ("/tmp/mnt/", "trusted.glusterfs.pump.status", status_msg, 8192); fprintf (stdout, "%s\n", status_msg); gf_log ("", GF_LOG_DEBUG, diff --git a/libglusterfs/src/compat.h b/libglusterfs/src/compat.h index 2d9130aac..51539648b 100644 --- a/libglusterfs/src/compat.h +++ b/libglusterfs/src/compat.h @@ -191,6 +191,7 @@ int32_t gf_darwin_compat_setxattr (dict_t *dict); #define lchmod chmod #endif +#define lgetxattr(path, key, value, size) solaris_getxattr(path,key,value,size) enum { ATTR_CREATE = 1, #define XATTR_CREATE ATTR_CREATE -- cgit