From 9a395d2db3a88d4ba479dfe0f5ad3769efee7f3a Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Wed, 12 Dec 2012 12:05:32 +0100 Subject: NetBSD MS_RDONLY portability build fix NetBSD uses MNT_RDONLY where Linux uses MS_RDONLY BUG: 815227 Change-Id: I8d78831f07e575b215aabc46eaa66e5e277bda0e Signed-off-by: Emmanuel Dreyfus Reviewed-on: http://review.gluster.org/4299 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- contrib/fuse-lib/mount-gluster-compat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib') diff --git a/contrib/fuse-lib/mount-gluster-compat.h b/contrib/fuse-lib/mount-gluster-compat.h index 17c11e789..4fc20623b 100644 --- a/contrib/fuse-lib/mount-gluster-compat.h +++ b/contrib/fuse-lib/mount-gluster-compat.h @@ -33,6 +33,7 @@ #ifdef __NetBSD__ #include #define umount2(dir, flags) unmount(dir, ((flags) != 0) ? MNT_FORCE : 0) +#define MS_RDONLY MNT_RDONLY #endif #ifdef linux -- cgit