summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Othón Martínez Vera <cfuga@cfuga.mx>2023-04-10 11:15:53 -0600
committerSam James <sam@gentoo.org>2024-03-08 18:34:03 +0000
commit31fffa9cf2491c4353f867ca66adadf8bf1e3e2a (patch)
tree433af15254cbeac43cd735605c11edb0121202d0 /media-libs/openexr/files/openexr-3.1.5-musl-i386.patch
parentapp-crypt/tpm2-tss: Don't fail tmpfiles_process where /sys is restricted (diff)
downloadgentoo-31fffa9cf2491c4353f867ca66adadf8bf1e3e2a.tar.gz
gentoo-31fffa9cf2491c4353f867ca66adadf8bf1e3e2a.tar.bz2
gentoo-31fffa9cf2491c4353f867ca66adadf8bf1e3e2a.zip
media-libs/openexr: fix x86 musl build for version 3.1.5
Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/openexr/files/openexr-3.1.5-musl-i386.patch')
-rw-r--r--media-libs/openexr/files/openexr-3.1.5-musl-i386.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/media-libs/openexr/files/openexr-3.1.5-musl-i386.patch b/media-libs/openexr/files/openexr-3.1.5-musl-i386.patch
new file mode 100644
index 000000000000..2b7a31ac694d
--- /dev/null
+++ b/media-libs/openexr/files/openexr-3.1.5-musl-i386.patch
@@ -0,0 +1,19 @@
+--- a/src/lib/Iex/IexMathFpu.cpp
++++ b/src/lib/Iex/IexMathFpu.cpp
+@@ -251,14 +251,14 @@
+ inline void
+ restoreControlRegs (const ucontext_t & ucon, bool clearExceptions)
+ {
+-# if defined(__GLIBC__) && defined(__i386__)
++# if defined(__linux__) && defined(__i386__)
+ setCw ((ucon.uc_mcontext.fpregs->cw & cwRestoreMask) | cwRestoreVal);
+ #else
+ setCw ((ucon.uc_mcontext.fpregs->cwd & cwRestoreMask) | cwRestoreVal);
+ # endif
+
+ _fpstate* kfp = reinterpret_cast<_fpstate*> (ucon.uc_mcontext.fpregs);
+-# if defined(__GLIBC__) && defined(__i386__)
++# if defined(__linux__) && defined(__i386__)
+ setMxcsr (kfp->magic == 0 ? kfp->mxcsr : 0, clearExceptions);
+ #else
+ setMxcsr (kfp->mxcsr, clearExceptions);