blob: 8acb6e5b56b09e4a907febc737b51eae3724214c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
Fix build against attr >= 2.4.48
Drop obsolete attr/xattr.h include as did attr upstream in attr-2.4.48.
See http://git.savannah.nongnu.org/cgit/attr.git/commit/?id=7921157890d07858d092f4003ca4c6bae9fd2c38
ENOATTR definition was moved to attr/attributes.h, thus include it.
attr < 2.4.48 keeps ENOATTR definition in attr/xattr.h, so define it
manually if necessary in order to preserve backwards compatibility.
Bug: https://bugs.gentoo.org/648966
Upstream-bug: https://sourceforge.net/p/aide/patches/23/
diff --git a/include/db_config.h b/include/db_config.h
index e92fe1c..7e5ff0d 100644
--- a/include/db_config.h
+++ b/include/db_config.h
@@ -62,7 +62,10 @@ typedef struct acl_type {
#ifdef WITH_XATTR /* Do generic user Xattrs. */
#include <sys/xattr.h>
-#include <attr/xattr.h>
+#include <attr/attributes.h>
+#ifndef ENOATTR
+# define ENOATTR ENODATA
+#endif
#endif
typedef struct xattr_node
|