MFH: r522608

Fix build on powerpc64

PR:		243241
Submitted by:	pkubaj

Approved by:	ports-secteam (blanket)
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2020-01-11 12:48:14 +00:00
parent fd211d74ad
commit 81bc69f68c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q1/; revision=522683
2 changed files with 12 additions and 1 deletions

View File

@ -13,7 +13,7 @@ COMMENT= Light-weight microthreads for Python
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
NOT_FOR_ARCHS= mips mips64 powerpc64
NOT_FOR_ARCHS= mips mips64
NOT_FOR_ARCHS_REASON= greenlet needs to be ported to this platform
USES= python

View File

@ -0,0 +1,11 @@
--- slp_platformselect.h.orig 2020-01-10 10:02:27 UTC
+++ slp_platformselect.h
@@ -12,7 +12,7 @@
#include "platform/switch_amd64_unix.h" /* gcc on amd64 */
#elif defined(__GNUC__) && defined(__i386__)
#include "platform/switch_x86_unix.h" /* gcc on X86 */
-#elif defined(__GNUC__) && defined(__powerpc64__) && defined(__linux__)
+#elif defined(__GNUC__) && defined(__powerpc64__) && (defined(__linux__) || defined(__FreeBSD__))
#include "platform/switch_ppc64_linux.h" /* gcc on PowerPC 64-bit */
#elif defined(__GNUC__) && defined(__PPC__) && defined(__linux__)
#include "platform/switch_ppc_linux.h" /* gcc on PowerPC */