summaryrefslogtreecommitdiffstats
path: root/extra/libcap/libcap-2.16-drop-linux-workarounds.patch
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2009-12-24 23:53:02 +0100
committertnut <thierryn1 at hispeed dot ch>2009-12-24 23:53:02 +0100
commit8e8ad512d60cb2a150926713c7a4e8e6abd000de (patch)
treef27fda8a3ef122d4212dff11fcc1880bcda8ccb0 /extra/libcap/libcap-2.16-drop-linux-workarounds.patch
parentada4d25277d8d686b8e6b1c22340924e871e0ae0 (diff)
downloadnutyx-pakxe-8e8ad512d60cb2a150926713c7a4e8e6abd000de.tar.gz
nutyx-pakxe-8e8ad512d60cb2a150926713c7a4e8e6abd000de.tar.bz2
nutyx-pakxe-8e8ad512d60cb2a150926713c7a4e8e6abd000de.tar.xz
nutyx-pakxe-8e8ad512d60cb2a150926713c7a4e8e6abd000de.zip
Paquets avec dépendances déplacés dans extra
Diffstat (limited to 'extra/libcap/libcap-2.16-drop-linux-workarounds.patch')
-rw-r--r--extra/libcap/libcap-2.16-drop-linux-workarounds.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/extra/libcap/libcap-2.16-drop-linux-workarounds.patch b/extra/libcap/libcap-2.16-drop-linux-workarounds.patch
new file mode 100644
index 000000000..bbd6db835
--- /dev/null
+++ b/extra/libcap/libcap-2.16-drop-linux-workarounds.patch
@@ -0,0 +1,43 @@
+dont need these compat hacks anymore
+
+http://bugs.gentoo.org/265304
+
+--- libcap/include/sys/capability.h
++++ libcap/include/sys/capability.h
+@@ -22,18 +22,6 @@
+ #include <sys/types.h>
+ #include <stdint.h>
+
+-/*
+- * Make sure we can be included from userland by preventing
+- * capability.h from including other kernel headers
+- */
+-#define _LINUX_TYPES_H
+-#define _LINUX_FS_H
+-#define __LINUX_COMPILER_H
+-#define __user
+-
+-typedef unsigned int __u32;
+-typedef __u32 __le32;
+-
+ #include <linux/capability.h>
+
+ /*
+--- libcap/include/linux/capability.h
++++ libcap/include/linux/capability.h
+@@ -40,13 +40,13 @@
+ typedef struct __user_cap_header_struct {
+ __u32 version;
+ int pid;
+-} __user *cap_user_header_t;
++} *cap_user_header_t;
+
+ typedef struct __user_cap_data_struct {
+ __u32 effective;
+ __u32 permitted;
+ __u32 inheritable;
+-} __user *cap_user_data_t;
++} *cap_user_data_t;
+
+
+ #define XATTR_CAPS_SUFFIX "capability"