From 72523017ee35f702a2beac180fd9a5098ec40d0b Mon Sep 17 00:00:00 2001 From: Jean-Pierre De Jesus DIAZ Date: Mon, 20 May 2024 15:01:05 +0200 Subject: [PATCH] SFT-3648: Fix unix port warning on newer compiler. * ports/unix/main.c (mp_import_stat): Fix function signature. --- ports/unix/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/unix/main.c b/ports/unix/main.c index 8db496ca0..ef9b4b116 100644 --- a/ports/unix/main.c +++ b/ports/unix/main.c @@ -726,7 +726,7 @@ MP_NOINLINE int main_(int argc, char **argv) { } #if !MICROPY_VFS -uint mp_import_stat(const char *path) { +mp_import_stat_t mp_import_stat(const char *path) { struct stat st; if (stat(path, &st) == 0) { if (S_ISDIR(st.st_mode)) {