diff options
author | Anton Patrushev <apatrushev@gmail.com> | 2017-09-22 22:44:09 +0500 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-09-25 17:09:05 +1000 |
commit | f008263022f794c056d8d102deaa62760822761a (patch) | |
tree | 6666eea61c62fcb5725307dcf1bd77ab02f15eb9 /py/persistentcode.c | |
parent | 8fa03fee77ff5ac49a0daa544951468f4c193b68 (diff) | |
download | micropython-f008263022f794c056d8d102deaa62760822761a.tar.gz micropython-f008263022f794c056d8d102deaa62760822761a.zip |
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.
Diffstat (limited to 'py/persistentcode.c')
-rw-r--r-- | py/persistentcode.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 <unistd.h> #include <sys/stat.h> |