Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
uClibc: Try to fix XATTR
Browse files Browse the repository at this point in the history
  • Loading branch information
miska committed Oct 22, 2018
1 parent 7d521ca commit c91a218
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions toolchain/uClibc/patches-0.9.33.2/999-fix-xattr.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Index: uClibc-0.9.33.2/include/sys/xattr.h
===================================================================
--- uClibc-0.9.33.2.orig/include/sys/xattr.h
+++ uClibc-0.9.33.2/include/sys/xattr.h
@@ -27,13 +27,8 @@ __BEGIN_DECLS

/* 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. */

0 comments on commit c91a218

Please sign in to comment.