summaryrefslogtreecommitdiffstats
path: root/tools/virtio/linux/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/virtio/linux/compiler.h')
-rw-r--r--tools/virtio/linux/compiler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/virtio/linux/compiler.h b/tools/virtio/linux/compiler.h
index 903dc9c4bd11..2c51bccb97bb 100644
--- a/tools/virtio/linux/compiler.h
+++ b/tools/virtio/linux/compiler.h
@@ -7,4 +7,5 @@
#define READ_ONCE(var) (*((volatile typeof(var) *)(&(var))))
+#define __aligned(x) __attribute((__aligned__(x)))
#endif