summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/compat-errno.c
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2011-05-20 16:56:24 +0000
committerAnand Avati <avati@gluster.com>2011-05-30 04:48:30 -0700
commitf2e0b36ea6d31a09f4013b2e6f6ffccc4aca9c0b (patch)
treee6d8cf25704b39a4cd5b3b1a4108838337601a51 /libglusterfs/src/compat-errno.c
parent7f1c2eb4d473b9323b3a31b33473f7fe06cee449 (diff)
errno: NetBSD does not have EDOOFUS
Thanks to: Emmanuel Dreyfus <manu@netbsd.org> [avati@gluster.com: check for EDOOFUS instead of !NetBSD] 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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/compat-errno.c b/libglusterfs/src/compat-errno.c
index 1a7290fe77f..55bf198a091 100644
--- a/libglusterfs/src/compat-errno.c
+++ b/libglusterfs/src/compat-errno.c
@@ -858,9 +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 */
/* 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__ */
/* EBADMSG 89 / * Bad message */
gf_error_to_errno_array[GF_ERROR_CODE_BADMSG] = EBADMSG;