mirror of https://github.com/python/cpython.git
Patch by Oliver Andrich for Lunix using glibc.
This commit is contained in:
parent
92d91f56a7
commit
aa6fa6bbeb
|
@ -180,7 +180,11 @@ static void fpe_reset(Sigfunc *handler)
|
||||||
|
|
||||||
/*-- Linux ----------------------------------------------------------------*/
|
/*-- Linux ----------------------------------------------------------------*/
|
||||||
#elif defined(linux)
|
#elif defined(linux)
|
||||||
|
#ifdef __GLIBC__
|
||||||
|
#include <fpu_control.h>
|
||||||
|
#else
|
||||||
#include <i386/fpu_control.h>
|
#include <i386/fpu_control.h>
|
||||||
|
#endif
|
||||||
__setfpucw(0x1372);
|
__setfpucw(0x1372);
|
||||||
signal(SIGFPE, handler);
|
signal(SIGFPE, handler);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue