diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2011-11-01 05:39:49 -0400 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-11-01 11:50:11 -0500 |
commit | 463ce4ae2dc5214f1b3ce5951c7cc3904c903702 (patch) | |
tree | 0e25ba042446addd926e9c49f0af1ee7abd8acac /qemu-barrier.h | |
parent | 9477c87ed9b7795b292cb683cf758fdfec866de3 (diff) |
qemu-barrier: Fix build failure on PowerPC Mac OS X
qemu-barrier.h tests if macro __powerpc__ is defined, however, the
preprocessor on PowerPC Mac OS X defines only __POWERPC__, not
__powerpc__. Resolve by testing instead for qemu-provided _ARCH_PPC.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-barrier.h')
-rw-r--r-- | qemu-barrier.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-barrier.h b/qemu-barrier.h index 735eea6cf9..c11bb2b59f 100644 --- a/qemu-barrier.h +++ b/qemu-barrier.h @@ -14,7 +14,7 @@ */ #define smp_wmb() barrier() -#elif defined(__powerpc__) +#elif defined(_ARCH_PPC) /* * We use an eieio() for a wmb() on powerpc. This assumes we don't |