summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/compat-errno.c
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2011-05-30 04:18:00 +0000
committerAnand Avati <avati@gluster.com>2011-05-30 04:48:34 -0700
commit291588c6d912e137ef4d8c19d0447e43c7d87bc4 (patch)
tree9d3c859ffa352181cb86e15b64f0c751460cadc1 /libglusterfs/src/compat-errno.c
parentf2e0b36ea6d31a09f4013b2e6f6ffccc4aca9c0b (diff)
fuse: NetBSD portability fixes
On NetBSD use libperfuse(3), rename umount2(2) as unmount(2), and skip inexistant /etc/mtab management. Thanks to: Emmanuel Dreyfus <manu@netbsd.org> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2923 (NetBSD port) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2923
Diffstat (limited to 'libglusterfs/src/compat-errno.c')
-rw-r--r--libglusterfs/src/compat-errno.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libglusterfs/src/compat-errno.c b/libglusterfs/src/compat-errno.c
index 55bf198a0..d57c0f968 100644
--- a/libglusterfs/src/compat-errno.c
+++ b/libglusterfs/src/compat-errno.c
@@ -567,7 +567,7 @@ init_compat_errno_arrays ()
gf_error_to_errno_array[GF_ERROR_CODE_BADMACHO] = EBADMACHO;
gf_errno_to_error_array[EBADMACHO] = GF_ERROR_CODE_BADMACHO;
-#if 0
+#ifdef EDOOFUS
/* EDOOFUS 88 / * Programming error */
gf_error_to_errno_array[GF_ERROR_CODE_DOOFUS] = EDOOFUS;
gf_errno_to_error_array[EDOOFUS] = GF_ERROR_CODE_DOOFUS;
@@ -858,11 +858,11 @@ init_compat_errno_arrays ()
gf_error_to_errno_array[GF_ERROR_CODE_NOATTR] = ENOATTR;
gf_errno_to_error_array[ENOATTR] = GF_ERROR_CODE_NOATTR;
-#ifndef __NetBSD__ /* Undefined on NetBSD */
+#ifdef EDOOFUS
/* EDOOFUS 88 / * Programming error */
gf_error_to_errno_array[GF_ERROR_CODE_DOOFUS] = EDOOFUS;
gf_errno_to_error_array[EDOOFUS] = GF_ERROR_CODE_DOOFUS;
-#endif /* __NetBSD__ */
+#endif
/* EBADMSG 89 / * Bad message */
gf_error_to_errno_array[GF_ERROR_CODE_BADMSG] = EBADMSG;