From db61075a123008ebd94ab8ff00b984e484155654 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Thu, 21 Oct 2010 03:38:30 +0000 Subject: Solaris build: Fix linux only features Signed-off-by: shishir gowda Signed-off-by: Anand V. Avati BUG: 1990 (Gluster mainline build on solaris fails with errors) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1990 --- glusterfsd/src/glusterfsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glusterfsd') 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); -- cgit