From d72b5616cdef96365d8fbf4113bbbce97917e802 Mon Sep 17 00:00:00 2001 From: Graham Date: Tue, 15 Sep 2026 08:28:22 -0700 Subject: [PATCH] AP_Filesystem: add WebAssembly SITL support --- libraries/AP_Filesystem/posix_compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Filesystem/posix_compat.h b/libraries/AP_Filesystem/posix_compat.h index 2168ed59f5a..a167b499413 100644 --- a/libraries/AP_Filesystem/posix_compat.h +++ b/libraries/AP_Filesystem/posix_compat.h @@ -109,7 +109,7 @@ int apfs_rename(const char *oldpath, const char *newpath); #define ftell(stream) apfs_ftell(stream) #define freopen(pathname, mode, stream) apfs_freopen(pathname, mode, stream) #define rename(oldpath, newpath) apfs_rename(oldpath, newpath) -#if !defined(__APPLE__) +#if !defined(__APPLE__) && !defined(__EMSCRIPTEN__) #define remove(pathname) apfs_remove(pathname) int sprintf(char *str, const char *format, ...); #endif