From bceee69a6c6f74d3834778c239f9e617878efdc6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 24 Apr 2020 12:27:29 +1000 Subject: [PATCH] AP_Filesystem: avoid some warnings in AP_Scripting --- libraries/AP_Filesystem/posix_compat.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Filesystem/posix_compat.h b/libraries/AP_Filesystem/posix_compat.h index 28228587fc..f6961e2655 100644 --- a/libraries/AP_Filesystem/posix_compat.h +++ b/libraries/AP_Filesystem/posix_compat.h @@ -49,6 +49,8 @@ int apfs_feof(APFS_FILE *stream); long apfs_ftell(APFS_FILE *stream); APFS_FILE *apfs_freopen(const char *pathname, const char *mode, APFS_FILE *stream); int apfs_remove(const char *pathname); +int apfs_rename(const char *oldpath, const char *newpath); +char *tmpnam(char *s); #undef stdin #undef stdout @@ -87,6 +89,7 @@ int apfs_remove(const char *pathname); #define ftell(stream) apfs_ftell(stream) #define freopen(pathname, mode, stream) apfs_freopen(pathname, mode, stream) #define remove(pathname) apfs_remove(pathname) +#define rename(oldpath, newpath) apfs_rename(oldpath, newpath) #if !defined(__APPLE__) int sprintf(char *str, const char *format, ...); #endif