head 1.1; access; symbols pkgsrc-2026Q3:1.1.0.2 pkgsrc-2026Q3-base:1.1; locks; strict; comment @// @; 1.1 date 2026.09.20.13.35.01; author gdt; state Exp; branches; next ; commitid Yu3lnVBox4JfCmWG; desc @@ 1.1 log @databases/mongodb4: Fix type error objected to by gcc12 (NetBSD 11) Resolves building under NetBSD 11. Patch from Paul Ripke, who is running it with unifi. Unifi starts for me with on NetBSD 11 (with no previous db). @ text @$NetBSD$ Fix type error objected to by gcc12, but not gcc10. --- src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp.orig 2026-08-15 12:10:22.076014483 +0000 +++ src/third_party/mozjs-60/extract/js/src/wasm/WasmSignalHandlers.cpp @@@@ -189,7 +189,7 @@@@ struct AutoSignalHandler # define R32_sig(p) ((p)->uc_mcontext.gp_regs[32]) # endif #elif defined(__NetBSD__) -# define XMM_sig(p,i) (((struct fxsave64*)(p)->uc_mcontext.__fpregs)->fx_xmm[i]) +# define XMM_sig(p,i) (((struct fxsave64*)&((p)->uc_mcontext.__fpregs))->fx_xmm[i]) # define EIP_sig(p) ((p)->uc_mcontext.__gregs[_REG_EIP]) # define EBP_sig(p) ((p)->uc_mcontext.__gregs[_REG_EBP]) # define ESP_sig(p) ((p)->uc_mcontext.__gregs[_REG_ESP]) @