From f008263022f794c056d8d102deaa62760822761a Mon Sep 17 00:00:00 2001 From: Anton Patrushev Date: Fri, 22 Sep 2017 22:44:09 +0500 Subject: [PATCH] py/persistentcode: Define mp_raw_code_save_file() for any unix target. A unix target should provide POSIX open/write/close functions regardless of its machine architecture. Fixes issue #3325. --- py/persistentcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/persistentcode.c b/py/persistentcode.c index 2fa8c1df07..f954038ae5 100644 --- a/py/persistentcode.c +++ b/py/persistentcode.c @@ -374,7 +374,7 @@ void mp_raw_code_save(mp_raw_code_t *rc, mp_print_t *print) { // 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(__unix__) #include #include