Skip to content

Commit e1260eb

Browse files
committed
guard shared-module/os/getenv.c as well
1 parent 761d787 commit e1260eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

shared-module/os/getenv.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
#include "extmod/vfs.h"
2929
#include "extmod/vfs_fat.h"
30+
31+
#if CIRCUITPY_OS_GETENV
3032
typedef FIL file_arg;
3133
static bool open_file(const char *name, file_arg *active_file) {
3234
#if defined(UNIX)
@@ -412,3 +414,4 @@ os_getenv_err_t common_hal_os_getenv_int(const char *key, mp_int_t *value) {
412414
common_hal_os_getenv_showerr(key, result);
413415
return result;
414416
}
417+
#endif

0 commit comments

Comments
 (0)