summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glusterfsd/src/glusterfsd.c2
-rw-r--r--libglusterfs/src/glusterfs.h4
-rw-r--r--rpc/xdr/src/cli1-xdr.h2
-rw-r--r--rpc/xdr/src/portmap-xdr.h1
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-op-sm.c3
5 files changed, 9 insertions, 3 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index 7d7e3038e..20f6d2a41 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -457,7 +457,7 @@ parse_opts (int key, char *arg, struct argp_state *state)
GF_FREE (cmd_args->volfile);
if (arg[0] != '/') {
- pwd = get_current_dir_name ();
+ pwd = getcwd (NULL, 0);
snprintf (tmp_buf, 1024, "%s/%s", pwd, arg);
cmd_args->volfile = gf_strdup (tmp_buf);
free (pwd);
diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h
index f04c2a26a..bf37f4fa5 100644
--- a/libglusterfs/src/glusterfs.h
+++ b/libglusterfs/src/glusterfs.h
@@ -64,6 +64,10 @@
#define O_DIRECTORY 0
#endif
+#ifndef FNM_EXTMATCH
+#define FNM_EXTMATCH 0
+#endif
+
#define GF_XATTR_PATHINFO_KEY "trusted.glusterfs.pathinfo"
#define GF_XATTR_LINKINFO_KEY "trusted.distribute.linkinfo"
diff --git a/rpc/xdr/src/cli1-xdr.h b/rpc/xdr/src/cli1-xdr.h
index f1f5bc050..38f4a56e7 100644
--- a/rpc/xdr/src/cli1-xdr.h
+++ b/rpc/xdr/src/cli1-xdr.h
@@ -27,7 +27,7 @@
#define _CLI1_H_RPCGEN
#include <rpc/rpc.h>
-
+#include "xdr-common.h"
#ifdef __cplusplus
extern "C" {
diff --git a/rpc/xdr/src/portmap-xdr.h b/rpc/xdr/src/portmap-xdr.h
index e53cc15ae..edc2ccf24 100644
--- a/rpc/xdr/src/portmap-xdr.h
+++ b/rpc/xdr/src/portmap-xdr.h
@@ -27,6 +27,7 @@
#define _PORTMAP_H_RPCGEN
#include <rpc/rpc.h>
+#include <rpc/types.h>
#ifdef __cplusplus
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index 1ea0b6ce5..d19caddc6 100644
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
@@ -46,6 +46,7 @@
#include "glusterd-store.h"
#include "cli1.h"
#include "glusterd-volgen.h"
+#include "syscall.h"
#include <sys/types.h>
#include <signal.h>
@@ -2015,7 +2016,7 @@ rb_send_xattr_command (glusterd_volinfo_t *volinfo,
goto out;
}
- ret = lsetxattr (mount_point_path, xattr_key,
+ ret = sys_lsetxattr (mount_point_path, xattr_key,
value,
strlen (value) + 1,
0);