diff --git a/shared-module/os/getenv.c b/shared-module/os/getenv.c index 39c3b4cee4ac7..c7bfadf3418d8 100644 --- a/shared-module/os/getenv.c +++ b/shared-module/os/getenv.c @@ -27,6 +27,8 @@ #include "extmod/vfs.h" #include "extmod/vfs_fat.h" + +#if CIRCUITPY_OS_GETENV typedef FIL file_arg; static bool open_file(const char *name, file_arg *active_file) { #if defined(UNIX) @@ -412,3 +414,4 @@ os_getenv_err_t common_hal_os_getenv_int(const char *key, mp_int_t *value) { common_hal_os_getenv_showerr(key, result); return result; } +#endif