From f2e0b36ea6d31a09f4013b2e6f6ffccc4aca9c0b Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Fri, 20 May 2011 16:56:24 +0000 Subject: errno: NetBSD does not have EDOOFUS Thanks to: Emmanuel Dreyfus [avati@gluster.com: check for EDOOFUS instead of !NetBSD] Signed-off-by: Anand Avati BUG: 2923 (NetBSD port) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2923 --- libglusterfs/src/compat-errno.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libglusterfs/src') diff --git a/libglusterfs/src/compat-errno.c b/libglusterfs/src/compat-errno.c index 1a7290fe7..55bf198a0 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; -- cgit