AP_Filesystem: build fixes for SITL on macOS

This commit is contained in:
Andy Piper 2019-09-09 09:30:59 +01:00 committed by Andrew Tridgell
parent 91e8752c17
commit 6f3334b460
2 changed files with 6 additions and 0 deletions

View File

@ -20,7 +20,11 @@
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#if defined(__APPLE__)
#include <sys/mount.h>
#else
#include <sys/vfs.h>
#endif
#include <utime.h>
extern const AP_HAL::HAL& hal;

View File

@ -87,7 +87,9 @@ 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)
#if !defined(__APPLE__)
int sprintf(char *str, const char *format, ...);
#endif
#ifdef __cplusplus
}