Commit 770f359c authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

tools/virtio: make asm/barrier.h self contained



We are using abort() so let's include stdlib.h

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 6bd6b282
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
#include <stdlib.h>
#if defined(__i386__) || defined(__x86_64__)
#define barrier() asm volatile("" ::: "memory")
#define virt_mb() __sync_synchronize()