From: David 'Digit' Turner Date: Wed, 5 Apr 2023 12:59:19 +0000 (+0200) Subject: Fix libvhost-user.c compilation. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=193ba660af14fc20cddaa04c20bb79ed05d1dbf0;p=qemu.git Fix libvhost-user.c compilation. The source file uses VIRTIO_F_VERSION_1 which is not defined by on Debian 10. The system-provided which does not include the macro definition is included through , so fix the issue by including the standard-headers version before that. Signed-off-by: David 'Digit' Turner Message-Id: <20230405125920.2951721-2-digit@google.com> Signed-off-by: Paolo Bonzini --- diff --git a/subprojects/libvhost-user/libvhost-user.c b/subprojects/libvhost-user/libvhost-user.c index 0abd898a52..8fb61e2df2 100644 --- a/subprojects/libvhost-user/libvhost-user.c +++ b/subprojects/libvhost-user/libvhost-user.c @@ -32,6 +32,12 @@ #include #include +/* Necessary to provide VIRTIO_F_VERSION_1 on system + * with older linux headers. Must appear before + * below. + */ +#include "standard-headers/linux/virtio_config.h" + #if defined(__linux__) #include #include