mcst-linux-kernel/patches-2024.06.26/ilmbase-2.1.0/0002-fpe_only_for_x86.patch

15 lines
399 B
Diff

diff -Naur old/IexMath/IexMathFpu.cpp new/IexMath/IexMathFpu.cpp
--- old/IexMath/IexMathFpu.cpp 2019-09-25 20:18:30.292105630 +0300
+++ new/IexMath/IexMathFpu.cpp 2019-09-25 20:29:09.148168997 +0300
@@ -52,9 +52,7 @@
#define debug(x)
#endif
-
-#ifdef HAVE_UCONTEXT_H
-
+#if defined(HAVE_UCONTEXT_H) && (defined(__x86_64__) || defined(__i386__))
#include <ucontext.h>
#include <signal.h>