qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Don't include <linux/compiler.h>


From: Fabrice Bellard
Subject: Re: [Qemu-devel] [PATCH] Don't include <linux/compiler.h>
Date: Mon, 11 Sep 2006 22:13:59 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913

The problem is that without this header it does not compile on some distributions (see old mailing list messages).

Fabrice.

David Woodhouse wrote:
This file is not one of the kernel headers which is exported to
userspace by the kernel. It should not exist in /usr/include/linux and
certainly shouldn't be included by userspace programs.

diff -Naupr qemu-0.8.2.orig/usb-linux.c qemu-0.8.2/usb-linux.c
--- qemu-0.8.2.orig/usb-linux.c 2006-07-22 19:23:34.000000000 +0200
+++ qemu-0.8.2/usb-linux.c      2006-08-23 18:47:16.000000000 +0200
@@ -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>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]