Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IexMathFpu.cpp: Fix build on non-glibc (e.g. musl libc).
Originally from: https://github.com/void-linux/void-packages/blob/80bbc168faa25448bd3399f4df331b836e74b85c/srcpkgs/ilmbase/patches/musl-_fpstate.patch Fixes error: IlmBase/IexMath/IexMathFpu.cpp: In function ‘void Iex_2_4::FpuControl::restoreControlRegs(const ucontext_t&, bool)’: IlmBase/IexMath/IexMathFpu.cpp:284:38: error: ‘struct _fpstate’ has no member named ‘cw’; did you mean ‘cwd’? 284 | setCw ((ucon.uc_mcontext.fpregs->cw & cwRestoreMask) | cwRestoreVal); | ^~ | cwd IlmBase/IexMath/IexMathFpu.cpp:287:20: error: ‘struct Iex_2_4::FpuControl::_fpstate_64’ has no member named ‘magic’ 287 | setMxcsr (kfp->magic == 0 ? kfp->mxcsr : 0, clearExceptions); | ^~~~~ Signed-off-by: Niklas Hambüchen <mail@nh2.me>
- Loading branch information