Skip to content

Commit f008263

Browse files
apatrushevdpgeorge
authored andcommitted
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 adafruit#3325.
1 parent 8fa03fe commit f008263

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/persistentcode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ void mp_raw_code_save(mp_raw_code_t *rc, mp_print_t *print) {
374374
// here we define mp_raw_code_save_file depending on the port
375375
// TODO abstract this away properly
376376

377-
#if defined(__i386__) || defined(__x86_64__) || (defined(__arm__) && (defined(__unix__)))
377+
#if defined(__i386__) || defined(__x86_64__) || defined(__unix__)
378378

379379
#include <unistd.h>
380380
#include <sys/stat.h>

0 commit comments

Comments
 (0)