summaryrefslogtreecommitdiff
path: root/lib/replace/system
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2012-04-18 14:35:17 +1000
committerAndrew Tridgell <tridge@samba.org>2012-04-18 07:48:05 +0200
commit2eb899de6a2bdf1aac1c1f010a6d2b5b02f9de39 (patch)
treee8066c8ed0165c03e53ef8e13f4b3ce6c597353b /lib/replace/system
parent8c9c6f869d7f6e991806be344f582191d701b77c (diff)
downloadsamba-2eb899de6a2bdf1aac1c1f010a6d2b5b02f9de39.tar.gz
samba-2eb899de6a2bdf1aac1c1f010a6d2b5b02f9de39.tar.bz2
samba-2eb899de6a2bdf1aac1c1f010a6d2b5b02f9de39.zip
replace: added ENOATTR define if undefined
this fixes the build of the tdb xattr wrapper code on systems without xattr headers Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/replace/system')
-rw-r--r--lib/replace/system/filesys.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/replace/system/filesys.h b/lib/replace/system/filesys.h
index e2c3c1dd72..2393068b4f 100644
--- a/lib/replace/system/filesys.h
+++ b/lib/replace/system/filesys.h
@@ -200,4 +200,12 @@
# define uwrap_enabled() 0
#endif /* UID_WRAPPER */
+/*
+ this allows us to use a uniform error handling for our xattr
+ wrappers
+*/
+#ifndef ENOATTR
+#define ENOATTR ENODATA
+#endif
+
#endif