py/emitglue.c: provide mp_raw_code_load_file for any unix architecture

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
This commit is contained in:
Chris Packham 2016-09-03 20:44:12 +12:00 committed by Damien George
parent 015774a04f
commit 8c6856d2e7

View File

@ -379,7 +379,7 @@ mp_raw_code_t *mp_raw_code_load_mem(const byte *buf, size_t len) {
// here we define mp_raw_code_load_file depending on the port
// TODO abstract this away properly
#if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) || (defined(__arm__) && (defined(__unix__)))
#if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) || defined(__unix__)
// unix file reader
#include <sys/stat.h>