micropython: fix build on ppc64 targets
This commit is contained in:
parent
826a43bf27
commit
d023284736
1 changed files with 20 additions and 0 deletions
20
srcpkgs/micropython/patches/ppc64.patch
Normal file
20
srcpkgs/micropython/patches/ppc64.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- py/emitglue.c 2018-12-20 16:15:21.717553255 +0100
|
||||
+++ py/emitglue.c 2018-12-20 16:14:34.210702965 +0100
|
||||
@@ -403,7 +403,7 @@
|
||||
// here we define mp_raw_code_load_file depending on the port
|
||||
// TODO abstract this away properly
|
||||
|
||||
-#if defined(__i386__) || defined(__x86_64__) || (defined(__arm__) && (defined(__unix__)))
|
||||
+#if defined(__i386__) || defined(__x86_64__) || defined(__powerpc64__) || (defined(__arm__) && (defined(__unix__)))
|
||||
// unix file reader
|
||||
|
||||
#include <sys/stat.h>
|
||||
@@ -637,7 +637,7 @@
|
||||
// here we define mp_raw_code_save_file depending on the port
|
||||
// TODO abstract this away properly
|
||||
|
||||
-#if defined(__i386__) || defined(__x86_64__) || (defined(__arm__) && (defined(__unix__)))
|
||||
+#if defined(__i386__) || defined(__x86_64__) || defined(__powerpc64__) || (defined(__arm__) && (defined(__unix__)))
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
Loading…
Reference in a new issue