summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Rogers <brogers@suse.com>2013-05-16 10:39:10 (GMT)
committerYury Usishchev <y.usishchev@samsung.com>2014-12-10 11:51:42 (GMT)
commit576fd84928979b4d90e3cec5af874b5289079e62 (patch)
treeeb0315e3e34f49a90c2cabd0501f364dc67c37a8
parenta95b838171108bf540185913b01f4c2d123aa812 (diff)
downloadqemu-576fd84928979b4d90e3cec5af874b5289079e62.zip
qemu-576fd84928979b4d90e3cec5af874b5289079e62.tar.gz
qemu-576fd84928979b4d90e3cec5af874b5289079e62.tar.bz2
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 cd291d3..7d7aa67 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>