OSDN Git Service

Fix libvhost-user.c compilation.
authorDavid 'Digit' Turner <digit@google.com>
Wed, 5 Apr 2023 12:59:19 +0000 (14:59 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 28 Apr 2023 10:50:34 +0000 (12:50 +0200)
commit193ba660af14fc20cddaa04c20bb79ed05d1dbf0
treedd512f8520324d984a14b9226aa81ef7922e9a38
parentd1a1111514333e46a98b136235f71eef90d610fa
Fix libvhost-user.c compilation.

The source file uses VIRTIO_F_VERSION_1 which is
not defined by <linux/virtio_config.h> on Debian 10.

The system-provided <linux/virtio_config.h> which
does not include the macro definition is included
through <linux/vhost.h>, so fix the issue by including
the standard-headers version before that.

Signed-off-by: David 'Digit' Turner <digit@google.com>
Message-Id: <20230405125920.2951721-2-digit@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
subprojects/libvhost-user/libvhost-user.c