diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-08 19:07:58 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-08 19:07:58 +0000 |
commit | 8edd4a48a39640822abe6ddb7b2a1d5b2da4ea70 (patch) | |
tree | dd40a3ea9cdcc06c8c63bd2ee71c2c2c0ea11549 /media-libs/openexr/files/openexr-3.1.7-musl-i386.patch | |
parent | 7825305c5ddf11fffe24fa30453c4e8468f64305 (diff) |
gentoo auto-resync : 08:03:2024 - 19:07:58
Diffstat (limited to 'media-libs/openexr/files/openexr-3.1.7-musl-i386.patch')
-rw-r--r-- | media-libs/openexr/files/openexr-3.1.7-musl-i386.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/media-libs/openexr/files/openexr-3.1.7-musl-i386.patch b/media-libs/openexr/files/openexr-3.1.7-musl-i386.patch new file mode 100644 index 000000000000..e2bedf6e7a12 --- /dev/null +++ b/media-libs/openexr/files/openexr-3.1.7-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__)) || defined(__ANDROID_API__) ++# if (defined(__linux__) && defined(__i386__)) || defined(__ANDROID_API__) + 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); |