Skip to content

Commit aa6fa6b

Browse files
committed
Patch by Oliver Andrich for Lunix using glibc.
1 parent 92d91f5 commit aa6fa6b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎Modules/fpectlmodule.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,11 @@ static void fpe_reset(Sigfunc *handler)
180180

181181
/*-- Linux ----------------------------------------------------------------*/
182182
#elif defined(linux)
183+
#ifdef __GLIBC__
184+
#include <fpu_control.h>
185+
#else
183186
#include <i386/fpu_control.h>
187+
#endif
184188
__setfpucw(0x1372);
185189
signal(SIGFPE, handler);
186190

0 commit comments

Comments
 (0)