| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/devel/py-pyinstaller/files/ |
Upload File : |
--- bootloader/src/main.c.orig 2019-07-09 19:14:04 UTC
+++ bootloader/src/main.c
@@ -16,6 +16,11 @@
* main: For OS X and Linux
*/
+#ifdef __FreeBSD__
+ #include <sys/cdefs.h>
+ #include <floatingpoint.h>
+ #include <ieeefp.h>
+#endif
#ifdef _WIN32
#include <windows.h>
#include <wchar.h>
@@ -33,9 +38,6 @@
#include "pyi_global.h"
#include "pyi_win32_utils.h"
-#ifdef __FreeBSD__
- #include <floatingpoint.h>
-#endif
#if defined(_WIN32)
#define MS_WINDOWS
@@ -87,19 +89,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;