File libcap-u64-typedef-fix.diff of Package libcap

---
 libcap/include/sys/capability.h |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

--- a/libcap/include/sys/capability.h
+++ b/libcap/include/sys/capability.h
@@ -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
 #define __LINUX_COMPILER_H
 #define __user
 
-typedef unsigned int __u32;
+/* HACK to fix build of libcap itself */
+#ifndef _LINUX_TYPES_H
+#define _LINUX_TYPES_H
+#include <stdint.h>
+typedef uint32_t __u32;
 typedef __u32 __le32;
+typedef uint64_t __u64;
+typedef __u64 __le64;
+#endif /* HACK */
 
 #include <linux/capability.h>
 
openSUSE Build Service is sponsored by