From 275b7e20adc55e8f8b17ac2754e455c0c5c6a902 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Wed, 12 Aug 2009 21:59:17 +0200 Subject: [PATCH] Add patch closing #540979 --- debian/patches/fix-enodata.patch | 23 +++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 24 insertions(+) create mode 100644 debian/patches/fix-enodata.patch diff --git a/debian/patches/fix-enodata.patch b/debian/patches/fix-enodata.patch new file mode 100644 index 0000000..afccd23 --- /dev/null +++ b/debian/patches/fix-enodata.patch @@ -0,0 +1,23 @@ +Fix building on systems which don't have ENODATA + +This patch (a modified form of the original patch from Cyril Brulebois +) fixed building on systems which don't have ENODATA +(e.g. GNU/kFreeBSD). Upstream is aware of it. + +Iustin Pop, +Wed, 12 Aug 2009 21:58:36 +0200 +--- a/xattr.c ++++ b/xattr.c +@@ -376,7 +376,11 @@ + goto free_list; + nalloc = nval; + 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; diff --git a/debian/patches/series b/debian/patches/series index e69de29..2ace68e 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -0,0 +1 @@ +fix-enodata.patch -- 2.39.2