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.
This commit is contained in:
Anton Patrushev 2017-09-22 22:44:09 +05:00 committed by Damien George
parent 8fa03fee77
commit f008263022

View File

@ -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>