Index: openexr-3.1.5/src/lib/Iex/IexMathFpu.cpp
===================================================================
--- openexr-3.1.5.orig/src/lib/Iex/IexMathFpu.cpp
+++ openexr-3.1.5/src/lib/Iex/IexMathFpu.cpp
@@ -25,7 +25,7 @@
 #include <IexConfigInternal.h>
 #if defined(HAVE_UCONTEXT_H) &&                                                \
     (defined(IEX_HAVE_SIGCONTEXT_CONTROL_REGISTER_SUPPORT) ||              \
-     defined(IEX_HAVE_CONTROL_REGISTER_SUPPORT))
+     defined(IEX_HAVE_CONTROL_REGISTER_SUPPORT)) && !defined(__GNU__)
 
 #        include <ucontext.h>
 #        include <signal.h>
