2013-08-17 02:43:59 +02:00
|
|
|
From 1f06ce5f93f5eecbf739e39c08cf1ad12d9def2b Mon Sep 17 00:00:00 2001
|
2013-05-17 14:54:25 +02:00
|
|
|
From: Bruce Rogers <brogers@suse.com>
|
|
|
|
Date: Thu, 16 May 2013 12:39:10 +0200
|
|
|
|
Subject: [PATCH] virtfs-proxy-helper: Provide __u64 for broken
|
|
|
|
sys/capability.h
|
|
|
|
|
|
|
|
Fixes the build on SLE 11 SP2.
|
2013-05-23 18:04:22 +02:00
|
|
|
|
|
|
|
[AF: Extend to ppc64]
|
2013-05-17 14:54:25 +02:00
|
|
|
---
|
2013-07-30 14:36:48 +02:00
|
|
|
fsdev/virtfs-proxy-helper.c | 7 +++++++
|
|
|
|
1 file changed, 7 insertions(+)
|
2013-05-17 14:54:25 +02:00
|
|
|
|
|
|
|
diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c
|
2013-05-23 18:04:22 +02:00
|
|
|
index 713a7b2..b8da77d 100644
|
2013-05-17 14:54:25 +02:00
|
|
|
--- a/fsdev/virtfs-proxy-helper.c
|
|
|
|
+++ b/fsdev/virtfs-proxy-helper.c
|
2013-05-23 18:04:22 +02:00
|
|
|
@@ -9,6 +9,13 @@
|
2013-05-17 14:54:25 +02:00
|
|
|
* the COPYING file in the top-level directory.
|
|
|
|
*/
|
|
|
|
|
|
|
|
+/* work around a broken sys/capability.h */
|
|
|
|
+#if defined(__i386__)
|
|
|
|
+typedef unsigned long long __u64;
|
2013-05-23 18:04:22 +02:00
|
|
|
+#endif
|
|
|
|
+#if defined(__powerpc64__)
|
|
|
|
+#include <asm/types.h>
|
2013-05-17 14:54:25 +02:00
|
|
|
+#endif
|
|
|
|
#include <sys/resource.h>
|
|
|
|
#include <getopt.h>
|
|
|
|
#include <syslog.h>
|