diff -r d9e83e426565 Programs/python.c --- a/Programs/python.c Fri Jun 26 02:50:21 2015 -0700 +++ b/Programs/python.c Sat Jun 27 15:56:10 2015 +0100 @@ -4,7 +4,7 @@ #include #ifdef __FreeBSD__ -#include +#include #endif #ifdef MS_WINDOWS @@ -23,9 +23,6 @@ wchar_t **argv_copy2; int i, res; char *oldloc; -#ifdef __FreeBSD__ - fp_except_t m; -#endif argv_copy = (wchar_t **)PyMem_RawMalloc(sizeof(wchar_t*) * (argc+1)); argv_copy2 = (wchar_t **)PyMem_RawMalloc(sizeof(wchar_t*) * (argc+1)); @@ -40,8 +37,7 @@ * exceptions by default. Here we disable them. */ #ifdef __FreeBSD__ - m = fpgetmask(); - fpsetmask(m & ~FP_X_OFL); + fedisableexcept(FE_OVERFLOW); #endif oldloc = _PyMem_RawStrdup(setlocale(LC_ALL, NULL));