Skip to contentSkip to conversation

FC6 compat compiler fix

PATCH In review Jason Wessel 3 participants 3 messages Dec 8, 2006 – Dec 27, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 FC6 compat compiler fix

When using the gcc34 compiler in FC6 QEMU will not build. It seems that linux/compiler.h is not actually used for anything, as it continues to build fine on other linux varients.

Signed-off-by [email protected]

Jason.

usb-linux.c +0 -1
Index: qemu-101806/usb-linux.c
===================================================================
@@ -26,7 +26,6 @@
 #if defined(__linux__)
 #include <dirent.h>
 #include <sys/ioctl.h>
-#include <linux/compiler.h>
 #include <linux/usbdevice_fs.h>
 #include <linux/version.h>
 
#1 lore raw
Quoted 3 lines · Jason Wessel

When using the gcc34 compiler in FC6 QEMU will not build. It seems that linux/compiler.h is not actually used for anything, as it continues to build fine on other linux varients.

This isn't special to FC6 -- this applies to _all_ distributions which are correctly using the headers exported from the kernel.

Signature · 1 line
dwmw2
#2 lore raw
In reply to Jason Wessel
Quoted 3 lines · Jason Wessel

When using the gcc34 compiler in FC6 QEMU will not build. It seems that linux/compiler.h is not actually used for anything, as it continues to build fine on other linux varients.

Don't know if compiler.h is needed or not, but I got it to compile using

./configure "--cc=gcc34 -I/usr/src/kernels/$(uname -r)-$(uname -p)/include"