Skip to contentSkip to conversation

Fix compilation of kvm-59 with older kernel includes

PATCH Applied Andi Kleen 2 participants 2 messages Jan 13, 2008 1 message not in the archive KVM

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 1/1 Fix compilation of kvm-59 with older kernel includes

I needed the following patch to make kvm-59 compile on SUSE 10.2. Yes it's a bug in the standard includes.

-Andi

qemu/usb-linux.c renamed from qemu/usb-linux.c-o +2 -0
diff -u kvm-59/qemu/usb-linux.c-o kvm-59/qemu/usb-linux.c
@@ -26,6 +26,8 @@
 #include "console.h"
 
 #if defined(__linux__)
+#define __user
+
 #include <dirent.h>
 #include <sys/ioctl.h>
 #include <linux/usbdevice_fs.h>

-Andi

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

A message that is not in the archive (sent off-list or not yet received): 20080113162025.GA6951-3rXA9MLqAseW/qJFnhkgxti2O/[email protected]

Applied
#2 lore raw
Quoted 4 lines · Andi Kleen

I needed the following patch to make kvm-59 compile on SUSE 10.2. Yes it's a bug in the standard includes.

Applied, thanks.

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace