]> git.proxmox.com Git - qemu.git/commitdiff
Add linux-headers to QEMU_INCLUDES
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 10 Apr 2013 08:29:47 +0000 (10:29 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Apr 2013 13:16:22 +0000 (15:16 +0200)
virtio/dataplane/vring.c requires the Linux headers and is built for all
targets. So we need to add the corresponding include to QEMU_INCLUDES to
avoid that outdated distribution headers are used.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure

index 73df1814063eb566a6703df8d8e6d293a8a39d81..258c82abac0f3b15eed820f92fd98384dacfa14f 100755 (executable)
--- a/configure
+++ b/configure
@@ -544,6 +544,7 @@ Haiku)
   if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
     audio_possible_drivers="$audio_possible_drivers fmod"
   fi
+  QEMU_INCLUDES="-I\$(SRC_PATH)/linux-headers $QEMU_INCLUDES"
 ;;
 esac
 
@@ -4227,10 +4228,6 @@ else
 fi
 includes="-I\$(SRC_PATH)/tcg $includes"
 
-if test "$linux" = "yes" ; then
-  includes="-I\$(SRC_PATH)/linux-headers $includes"
-fi
-
 for i in $ARCH $TARGET_BASE_ARCH ; do
   case "$i" in
   alpha)