From e35b6471dda5eb18e48af1a1963b3f4e4d4a2839 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Wed, 12 Aug 2009 21:58:36 +0200 Subject: [PATCH] Fix building on systems which don't have ENODATA This patch (a modified form of the original patch from Cyril Brulebois ) fixes building on systems which don't have ENODATA (e.g. GNU/kFreeBSD). --- xattr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xattr.c b/xattr.c index 980796c..c792df3 100644 --- a/xattr.c +++ b/xattr.c @@ -551,7 +551,11 @@ get_all(PyObject *self, PyObject *args, PyObject *keywds) buf_val = buf_val_tmp; nalloc = realloc_size; continue; - } else if(errno == ENODATA || errno == ENOATTR) { + } else if( +#ifdef ENODATA + errno == ENODATA || +#endif + errno == ENOATTR) { /* this attribute has gone away since we queried the attribute list */ missing = 1; -- 2.39.5