From d98068a71b63330180281e09347c02d69213c2aa Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Fri, 15 Jun 2012 09:45:23 +0200 Subject: NetBSD build fixes. This is a backport of Change-Id: Ib8183d4b585465d05a7adf3a4ceae93ae1bded15 BUG: 764655 Change-Id: I552b87b72c234b3a11af6ffd4a03975879602363 Signed-off-by: Emmanuel Dreyfus Reviewed-on: http://review.gluster.com/3574 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- contrib/fuse-lib/mount.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'contrib') diff --git a/contrib/fuse-lib/mount.c b/contrib/fuse-lib/mount.c index bbc05f286..759014fe2 100644 --- a/contrib/fuse-lib/mount.c +++ b/contrib/fuse-lib/mount.c @@ -551,6 +551,7 @@ fuse_mount_sys (const char *mountpoint, char *fsname, char *mnt_param, int fd) else mounted = 1; +#ifndef __NetBSD__ if (geteuid () == 0) { char *newmnt = fuse_mnt_resolve_path ("fuse", mountpoint); @@ -569,6 +570,7 @@ fuse_mount_sys (const char *mountpoint, char *fsname, char *mnt_param, int fd) goto out; } } +#endif /* __NetBSD__ */ out: if (ret == -1) { -- cgit