diff options
Diffstat (limited to 'lang/python22/patches/patch-ag')
-rw-r--r-- | lang/python22/patches/patch-ag | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lang/python22/patches/patch-ag b/lang/python22/patches/patch-ag new file mode 100644 index 00000000000..b0e86d15943 --- /dev/null +++ b/lang/python22/patches/patch-ag @@ -0,0 +1,31 @@ +$NetBSD: patch-ag,v 1.1 2006/01/09 21:22:57 joerg Exp $ + +--- Modules/fpectlmodule.c.orig 2006-01-09 21:12:40.000000000 +0000 ++++ Modules/fpectlmodule.c +@@ -68,7 +68,7 @@ extern "C" { + #include "Python.h" + #include <signal.h> + +-#if defined(__FreeBSD__) ++#if defined(__FreeBSD__) || defined(__DragonFly__) + # include <ieeefp.h> + #endif + +@@ -197,7 +197,7 @@ static void fpe_reset(Sigfunc *handler) + PyOS_setsig(SIGFPE, handler); + + /*-- FreeBSD ----------------------------------------------------------------*/ +-#elif defined(__FreeBSD__) ++#elif defined(__FreeBSD__) || defined(__DragonFly__) + fpresetsticky(fpgetsticky()); + fpsetmask(FP_X_INV | FP_X_DZ | FP_X_OFL); + PyOS_setsig(SIGFPE, handler); +@@ -243,7 +243,7 @@ static void fpe_reset(Sigfunc *handler) + + static PyObject *turnoff_sigfpe(PyObject *self,PyObject *args) + { +-#ifdef __FreeBSD__ ++#if defined(__FreeBSD__) || defined(__DragonFly__) + fpresetsticky(fpgetsticky()); + fpsetmask(0); + #else |