summaryrefslogtreecommitdiffstats
path: root/contrib/vhost-user-scsi/vhost-user-scsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/vhost-user-scsi/vhost-user-scsi.c')
-rw-r--r--contrib/vhost-user-scsi/vhost-user-scsi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/vhost-user-scsi/vhost-user-scsi.c b/contrib/vhost-user-scsi/vhost-user-scsi.c
index 7a1db164c8..3c912384e9 100644
--- a/contrib/vhost-user-scsi/vhost-user-scsi.c
+++ b/contrib/vhost-user-scsi/vhost-user-scsi.c
@@ -12,7 +12,9 @@
#include "qemu/osdep.h"
#include <iscsi/iscsi.h>
+#define inline __attribute__((gnu_inline)) /* required for libiscsi v1.9.0 */
#include <iscsi/scsi-lowlevel.h>
+#undef inline
#include "contrib/libvhost-user/libvhost-user-glib.h"
#include "standard-headers/linux/virtio_scsi.h"