Solaris build: Fix linux only features
Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1990 (Gluster mainline build on solaris fails with errors) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1990
This commit is contained in:
parent
cd9a247906
commit
db61075a12
@ -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);
|
||||
|
@ -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"
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
#define _CLI1_H_RPCGEN
|
||||
|
||||
#include <rpc/rpc.h>
|
||||
|
||||
#include "xdr-common.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -27,6 +27,7 @@
|
||||
#define _PORTMAP_H_RPCGEN
|
||||
|
||||
#include <rpc/rpc.h>
|
||||
#include <rpc/types.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user