From d0232847362b0e8896fe9a71feb409169850aeea Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 20 Dec 2018 18:26:49 +0100 Subject: [PATCH] micropython: fix build on ppc64 targets --- srcpkgs/micropython/patches/ppc64.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/micropython/patches/ppc64.patch diff --git a/srcpkgs/micropython/patches/ppc64.patch b/srcpkgs/micropython/patches/ppc64.patch new file mode 100644 index 0000000000..497d678c25 --- /dev/null +++ b/srcpkgs/micropython/patches/ppc64.patch @@ -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 +@@ -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 + #include