summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Rogers <brogers@suse.com>2013-05-16 12:39:10 +0200
committerJunfeng Dong <junfeng.dong@intel.com>2013-11-19 18:57:39 +0800
commitf0411a098d07ac3e9a70beb595a98e58005909ab (patch)
treec270b5c00d4fc49e22b8bc1deec59be531ccde00
parentf64aa1cf5d1e68fa474e45ba67c171e0c6188d02 (diff)
downloadqemu-f0411a098d07ac3e9a70beb595a98e58005909ab.tar.gz
qemu-f0411a098d07ac3e9a70beb595a98e58005909ab.tar.bz2
qemu-f0411a098d07ac3e9a70beb595a98e58005909ab.zip
virtfs-proxy-helper: Provide __u64 for broken sys/capability.h
Fixes the build on SLE 11 SP2. [AF: Extend to ppc64]
-rw-r--r--fsdev/virtfs-proxy-helper.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c
index 713a7b2b8..b8da77dbe 100644
--- a/fsdev/virtfs-proxy-helper.c
+++ b/fsdev/virtfs-proxy-helper.c
@@ -9,6 +9,13 @@
* the COPYING file in the top-level directory.
*/
+/* work around a broken sys/capability.h */
+#if defined(__i386__)
+typedef unsigned long long __u64;
+#endif
+#if defined(__powerpc64__)
+#include <asm/types.h>
+#endif
#include <sys/resource.h>
#include <getopt.h>
#include <syslog.h>