Diff of /src/runtime/x86-arch.c [4af254] .. [3d19a6]  Maximize  Restore

Switch to side-by-side view

--- a/src/runtime/x86-arch.c
+++ b/src/runtime/x86-arch.c
@@ -55,8 +55,10 @@
     return &context->uc_mcontext.gregs[16];
 #elif defined __FreeBSD__
     return &context->uc_mcontext.mc_eflags;
-#elif defined __OpenBSD__
+#elif defined __OpenBSD__ || defined __NetBSD__
     return &context->sc_eflags;
+#elif defined __NetBSD__
+    return &(context->uc_mcontext.__gregs[_REG_EFL]);
 #else
 #error unsupported OS
 #endif

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks