Patch by Oliver Andrich for Lunix using glibc.

This commit is contained in:
Guido van Rossum 1997-12-15 18:07:10 +00:00
parent 92d91f56a7
commit aa6fa6bbeb

View 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);