aboutsummaryrefslogtreecommitdiffstats
path: root/main/samba/uclibc-xattr-create.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-02-24 14:05:33 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-02-24 14:06:16 +0000
commit1f116fd47d77324df42eba2edc82855c77dc0880 (patch)
tree87838540e2bdad22eadeb73bf25abf37c5d65d02 /main/samba/uclibc-xattr-create.patch
parent1d7a7a00644f8f143f74fa4282e30e044ee79281 (diff)
downloadaports-1f116fd47d77324df42eba2edc82855c77dc0880.tar.bz2
aports-1f116fd47d77324df42eba2edc82855c77dc0880.tar.xz
main/samba: build fix for samba on uclibc
Diffstat (limited to 'main/samba/uclibc-xattr-create.patch')
-rw-r--r--main/samba/uclibc-xattr-create.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/samba/uclibc-xattr-create.patch b/main/samba/uclibc-xattr-create.patch
new file mode 100644
index 0000000000..d4de15d2f2
--- /dev/null
+++ b/main/samba/uclibc-xattr-create.patch
@@ -0,0 +1,15 @@
+--- ./lib/replace/system/filesys.h.orig
++++ ./lib/replace/system/filesys.h
+@@ -122,6 +122,12 @@
+ #if HAVE_ATTR_XATTR_H
+ #include <attr/xattr.h>
+ #elif HAVE_SYS_XATTR_H
++#ifdef XATTR_CREATE
++#undef XATTR_CREATE
++#endif
++#ifdef XATTR_REPLACE
++#undef XATTR_REPLACE
++#endif
+ #include <sys/xattr.h>
+ #endif
+