Author: Amaury Forgeot d'Arc <[email protected]>
Branch: win32-faulthandler
Changeset: r91007:e6d283563e29
Date: 2017-04-06 19:24 +0200
http://bitbucket.org/pypy/pypy/changeset/e6d283563e29/
Log: Fix link errors now.
diff --git a/pypy/module/faulthandler/faulthandler.c
b/pypy/module/faulthandler/faulthandler.c
--- a/pypy/module/faulthandler/faulthandler.c
+++ b/pypy/module/faulthandler/faulthandler.c
@@ -511,7 +511,11 @@
/* restore the previous handler */
if (handler->enabled) {
+#ifdef HAVE_SIGACTION
(void)sigaction(signum, &handler->previous, NULL);
+#else
+ (void)signal(signum, handler->previous);
+#endif
handler->enabled = 0;
}
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit