devel/py-pyinstaller: fix build on powerpc64

Include sys/cdefs.h to make __BEGIN_DECLS available.

Approved by:	tier 2 blanket
This commit is contained in:
Piotr Kubaj 2020-12-18 14:50:39 +00:00
parent 30c214fa81
commit 45bec4845a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=558377
2 changed files with 5 additions and 7 deletions

View File

@ -15,9 +15,6 @@ COMMENT= Program to create standalone executables from Python scripts
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING.txt
BROKEN_FreeBSD_12_powerpc64= fails to compile: /usr/include/machine/ieeefp.h:36: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
BROKEN_FreeBSD_13_powerpc64= fails to compile: /usr/include/machine/ieeefp.h:35:1: error: unknown type name '__BEGIN_DECLS'
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}altgraph>0:math/py-altgraph@${PY_FLAVOR}
USES= python

View File

@ -1,17 +1,18 @@
--- bootloader/src/main.c.orig 2018-09-22 05:16:07 UTC
--- bootloader/src/main.c.orig 2019-07-09 19:14:04 UTC
+++ bootloader/src/main.c
@@ -16,6 +16,10 @@
@@ -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 +37,6 @@
@@ -33,9 +38,6 @@
#include "pyi_global.h"
#include "pyi_win32_utils.h"
@ -21,7 +22,7 @@
#if defined(_WIN32)
#define MS_WINDOWS
@@ -87,19 +88,12 @@ main(int argc, char **argv)
@@ -87,19 +89,12 @@ main(int argc, char **argv)
{
int res;