SHA256
1
0
forked from pool/qemu
qemu/0037-virtfs-proxy-helper-Provide-__u64-f.patch
Bruce Rogers 9633a9b62c Accepting request 210801 from home:bfrogers:branches:Virtualization
Adjust for recently fixed acpica package, Do a better? work around for roms/Makefile issue. Rework changes file for suitability for openSUSE:Factory checkin.

OBS-URL: https://build.opensuse.org/request/show/210801
OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=170
2013-12-13 14:49:46 +00:00

32 lines
864 B
Diff

From d56b7f021794a2c7ea33506b089152e6bd98e19c Mon Sep 17 00:00:00 2001
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.
[AF: Extend to ppc64]
---
fsdev/virtfs-proxy-helper.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c
index 713a7b2..b8da77d 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>