$NetBSD: patch-ac,v 1.4 2011/09/18 01:36:06 manu Exp $ NetBSD does not have EDOOFUS --- libglusterfs/src/compat-errno.c.orig 2011-08-23 14:31:37.000000000 +0200 +++ libglusterfs/src/compat-errno.c 2011-09-17 15:45:29.000000000 +0200 @@ -857,11 +857,13 @@ /* ENOATTR 87 / * Attribute not found */ 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; gf_errno_to_error_array[EBADMSG] = GF_ERROR_CODE_BADMSG;