mirror of
https://git.freebsd.org/ports.git
synced 2025-06-18 03:00:42 -04:00
- Fix build for mips64 - Added License Changelog: https://github.com/pyinstaller/pyinstaller/blob/v3.4/doc/CHANGES.rst PR: 229948 Submitted by: ndowens@yahoo.com Sponsored by: iXsystems Inc.
43 lines
1,017 B
C
43 lines
1,017 B
C
--- bootloader/src/main.c.orig 2018-09-22 05:16:07 UTC
|
|
+++ bootloader/src/main.c
|
|
@@ -16,6 +16,10 @@
|
|
* main: For OS X and Linux
|
|
*/
|
|
|
|
+#ifdef __FreeBSD__
|
|
+ #include <floatingpoint.h>
|
|
+ #include <ieeefp.h>
|
|
+#endif
|
|
#ifdef _WIN32
|
|
#include <windows.h>
|
|
#include <wchar.h>
|
|
@@ -33,9 +37,6 @@
|
|
#include "pyi_global.h"
|
|
#include "pyi_win32_utils.h"
|
|
|
|
-#ifdef __FreeBSD__
|
|
- #include <floatingpoint.h>
|
|
-#endif
|
|
|
|
#if defined(_WIN32)
|
|
#define MS_WINDOWS
|
|
@@ -87,19 +88,12 @@ main(int argc, char **argv)
|
|
{
|
|
int res;
|
|
|
|
- #ifdef __FreeBSD__
|
|
- fp_except_t m;
|
|
- #endif
|
|
|
|
/* 754 requires that FP exceptions run in "no stop" mode by default,
|
|
* and until C vendors implement C99's ways to control FP exceptions,
|
|
* Python requires non-stop mode. Alas, some platforms enable FP
|
|
* exceptions by default. Here we disable them.
|
|
*/
|
|
- #ifdef __FreeBSD__
|
|
- m = fpgetmask();
|
|
- fpsetmask(m & ~FP_X_OFL);
|
|
- #endif
|
|
|
|
res = pyi_main(argc, argv);
|
|
return res;
|