summaryrefslogtreecommitdiffstats
path: root/Modules/fpectlmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-15 18:07:10 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-15 18:07:10 (GMT)
commitaa6fa6bbebc03dd6bb22b61a504d603871410e70 (patch)
tree53bf1e44430a2f63638fd47d5dfbc46ce606e0d3 /Modules/fpectlmodule.c
parent92d91f56a77523d43265076f20e9820bacb40f46 (diff)
downloadcpython-aa6fa6bbebc03dd6bb22b61a504d603871410e70.zip
cpython-aa6fa6bbebc03dd6bb22b61a504d603871410e70.tar.gz
cpython-aa6fa6bbebc03dd6bb22b61a504d603871410e70.tar.bz2
Patch by Oliver Andrich for Lunix using glibc.
Diffstat (limited to 'Modules/fpectlmodule.c')
-rw-r--r--Modules/fpectlmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/fpectlmodule.c b/Modules/fpectlmodule.c
index 5e21680..e2a8022 100644
--- a/Modules/fpectlmodule.c
+++ b/Modules/fpectlmodule.c
@@ -180,7 +180,11 @@ static void fpe_reset(Sigfunc *handler)
/*-- Linux ----------------------------------------------------------------*/
#elif defined(linux)
+#ifdef __GLIBC__
+#include <fpu_control.h>
+#else
#include <i386/fpu_control.h>
+#endif
__setfpucw(0x1372);
signal(SIGFPE, handler);