summaryrefslogtreecommitdiff
path: root/core/glibc/glibc-2.18-xattr-compat-hack.patch
blob: 7486922d7306c7fa1f9699fc7ff8210a84b9ef49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff -Naur glibc-2.18-orig/misc/sys/xattr.h glibc-2.18/misc/sys/xattr.h
--- glibc-2.18-orig/misc/sys/xattr.h	2013-08-11 08:52:55.000000000 +1000
+++ glibc-2.18/misc/sys/xattr.h	2014-01-07 15:45:50.533969040 +1000
@@ -26,13 +26,8 @@
 
 /* The following constants should be used for the fifth parameter of
    `*setxattr'.  */
-enum
-{
-  XATTR_CREATE = 1,	/* set value, fail if attr already exists.  */
-#define XATTR_CREATE	XATTR_CREATE
-  XATTR_REPLACE = 2	/* set value, fail if attr does not exist.  */
-#define XATTR_REPLACE	XATTR_REPLACE
-};
+#define XATTR_CREATE	1
+#define XATTR_REPLACE	2
 
 /* Set the attribute NAME of the file pointed to by PATH to VALUE (which
    is SIZE bytes long).  Return 0 on success, -1 for errors.  */