]> granicus.if.org Git - python/commitdiff
Patch by Oliver Andrich for Lunix using glibc.
authorGuido van Rossum <guido@python.org>
Mon, 15 Dec 1997 18:07:10 +0000 (18:07 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 15 Dec 1997 18:07:10 +0000 (18:07 +0000)
Modules/fpectlmodule.c

index 5e216804d110e4a04ada0fb27204f4c05f1c9f06..e2a8022723580be34fdc889ac61f4b047603edf2 100644 (file)
@@ -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);