2009-03-17 16:34:11 +01:00
|
|
|
---
|
2009-03-24 18:34:55 +01:00
|
|
|
libcap/include/sys/capability.h | 10 ++++++++--
|
|
|
|
1 file changed, 8 insertions(+), 2 deletions(-)
|
2009-03-17 16:34:11 +01:00
|
|
|
|
|
|
|
--- a/libcap/include/sys/capability.h
|
|
|
|
+++ b/libcap/include/sys/capability.h
|
2009-03-24 18:34:55 +01:00
|
|
|
@@ -26,13 +26,19 @@
|
|
|
|
* 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
|
2009-03-17 16:34:11 +01:00
|
|
|
#define __LINUX_COMPILER_H
|
|
|
|
#define __user
|
|
|
|
|
|
|
|
-typedef unsigned int __u32;
|
2009-03-24 18:34:55 +01:00
|
|
|
+/* HACK to fix build of libcap itself */
|
|
|
|
+#ifndef _LINUX_TYPES_H
|
|
|
|
+#define _LINUX_TYPES_H
|
2009-03-17 16:34:11 +01:00
|
|
|
+#include <stdint.h>
|
|
|
|
+typedef uint32_t __u32;
|
|
|
|
typedef __u32 __le32;
|
|
|
|
+typedef uint64_t __u64;
|
2009-03-24 18:34:55 +01:00
|
|
|
+typedef __u64 __le64;
|
|
|
|
+#endif /* HACK */
|
2009-03-17 16:34:11 +01:00
|
|
|
|
|
|
|
#include <linux/capability.h>
|
|
|
|
|