diff --git a/liba/include/unistd.h b/liba/include/unistd.h index 8dadc4ad4..9b95be0b3 100644 --- a/liba/include/unistd.h +++ b/liba/include/unistd.h @@ -2,5 +2,6 @@ #define LIBA_UNISTD_H #define SEEK_SET 0 +#define SEEK_CUR 1 #endif diff --git a/python/port/mpconfigport.h b/python/port/mpconfigport.h index bfff743d6..53c3bb90a 100644 --- a/python/port/mpconfigport.h +++ b/python/port/mpconfigport.h @@ -119,8 +119,6 @@ typedef uintptr_t mp_uint_t; // must be pointer size typedef long mp_off_t; -#define SEEK_CUR 1 - // extra built in names to add to the global namespace #define MICROPY_PORT_BUILTINS \ { MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj }, \