From 8c4bf91025e2bf510a56f5789594beceb3c3827c Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Fri, 27 Apr 2012 11:41:14 +0200 Subject: NetBSD build fixes Change-Id: Ib8183d4b585465d05a7adf3a4ceae93ae1bded15 BUG: 764655 Signed-off-by: Emmanuel Dreyfus Reviewed-on: http://review.gluster.com/3238 Reviewed-by: Amar Tumballi Tested-by: Gluster Build System Reviewed-by: Jeff Darcy Reviewed-by: Vijay Bellur --- 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 8c5da3d61..fde9f316a 100644 --- a/contrib/fuse-lib/mount.c +++ b/contrib/fuse-lib/mount.c @@ -600,6 +600,7 @@ fuse_mount_sys (const char *mountpoint, char *fsname, char *mnt_param, pid_t *mt else mounted = 1; +#ifndef __NetBSD__ if (geteuid () == 0) { char *newmnt = fuse_mnt_resolve_path ("fuse", mountpoint); @@ -618,6 +619,7 @@ fuse_mount_sys (const char *mountpoint, char *fsname, char *mnt_param, pid_t *mt goto out; } } +#endif /* __NetBSD__ */ ret = 0; out: -- cgit