boost: fix mips*-musl build

This commit is contained in:
Jürgen Buchmüller 2017-11-09 17:30:46 +01:00
parent 41705ccfa0
commit 8ffd58877b

View File

@ -0,0 +1,11 @@
--- boost/fiber/detail/cpu_relax.hpp 2017-09-02 11:56:11.000000000 +0200
+++ boost/fiber/detail/cpu_relax.hpp 2017-11-09 17:25:40.258995963 +0100
@@ -48,7 +48,7 @@
# define cpu_relax() asm volatile ("nop" ::: "memory");
# endif
#elif BOOST_ARCH_MIPS
-# define cpu_relax() asm volatile ("pause" ::: "memory");
+# define cpu_relax() asm volatile ("nop" ::: "memory");
#elif BOOST_ARCH_PPC
// http://code.metager.de/source/xref/gnu/glibc/sysdeps/powerpc/sys/platform/ppc.h
// http://stackoverflow.com/questions/5425506/equivalent-of-x86-pause-instruction-for-ppc