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

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
/* 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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment