qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 1/3] Fix libvhost-user.c compilation.


From: Michael S. Tsirkin
Subject: Re: [PATCH 1/3] Fix libvhost-user.c compilation.
Date: Fri, 7 Apr 2023 05:46:14 -0400

On Fri, Apr 07, 2023 at 11:29:46AM +0200, David Turner wrote:
> So it looks like that for some reason, the QEMU linux-headers directory is not
> in the include search path for this compilation command, and that the
> system-or-sysroot provided <linux/vhost.h> is picked instead. Fixing this 
> might
> be a better long-term fix than what I am proposing in this patch. I am not 
> sure
> how to do that yet though. Do you have any recommendations?

Check what flags are passed to the compiler :)
meson.build has:

if targetos == 'linux'
  add_project_arguments('-isystem', meson.current_source_dir() / 
'linux-headers',
                        '-isystem', 'linux-headers',
                        language: all_languages)
endif


-- 
MST




reply via email to

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