File arm-build.diff of Package ilmbase
Index: IexMath/IexMathFpu.cpp
===================================================================
--- IexMath/IexMathFpu.cpp.orig
+++ IexMath/IexMathFpu.cpp
@@ -52,7 +52,7 @@
#endif
-#ifdef HAVE_UCONTEXT_H
+#if defined(HAVE_UCONTEXT_H) && (defined(__x86_64__) || defined(__i386__))
#include <ucontext.h>
@@ -264,7 +264,7 @@ const uint16_t cwRestoreVal = (0 << 10)
#include <asm/sigcontext.h>
-inline void
+inline static void
restoreControlRegs (const ucontext_t & ucon, bool clearExceptions)
{
setCw ((ucon.uc_mcontext.fpregs->cw & cwRestoreMask) | cwRestoreVal);