2eb900
From 3efd44125a6f64fba786d08254e9d1bb6f08abde Mon Sep 17 00:00:00 2001
2eb900
From: Milind Changire <mchangir@redhat.com>
2eb900
Date: Sat, 4 Aug 2018 17:51:25 +0530
2eb900
Subject: [PATCH 2/2] add workaround for undefined ENOATTR
2eb900
2eb900
define ENOATTR as ENODATA
2eb900
fixes bz#1610029
2eb900
2eb900
Signed-off-by: Milind Changire <mchangir@redhat.com>
2eb900
---
2eb900
 xattr.c | 4 ++++
2eb900
 1 file changed, 4 insertions(+)
2eb900
2eb900
diff --git a/xattr.c b/xattr.c
2eb900
index 2529e90..ac248cd 100644
2eb900
--- a/xattr.c
2eb900
+++ b/xattr.c
2eb900
@@ -97,6 +97,10 @@ typedef int Py_ssize_t;
2eb900
    multi-operations */
2eb900
 #define ESTIMATE_ATTR_SIZE 256
2eb900
 
2eb900
+#if !defined(ENOATTR)
2eb900
+#define      ENOATTR ENODATA
2eb900
+#endif
2eb900
+
2eb900
 typedef enum {T_FD, T_PATH, T_LINK} target_e;
2eb900
 
2eb900
 typedef struct {
2eb900
-- 
2eb900
2.17.1
2eb900