libcap/libcap-1.10-userland.patch
cvsdist 2544c6565a auto-import changelog data from libcap-1.10-6.src.rpm
Fri Nov 09 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.10-6
- Fix sys/capabilities.h header (#55727)
- Move to /lib, some applications seem to be using this rather early
    (#55733)
2004-09-09 07:21:31 +00:00

20 lines
455 B
Diff

--- libcap-1.10/libcap/include/sys/capability.h.foo Fri Nov 9 16:26:25 2001
+++ libcap-1.10/libcap/include/sys/capability.h Fri Nov 9 16:28:47 2001
@@ -21,6 +21,16 @@
*/
#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
+typedef uint32_t __u32;
+
#include <linux/capability.h>
/*