mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Filesystem: build fixes for SITL on macOS
This commit is contained in:
parent
91e8752c17
commit
6f3334b460
@ -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;
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user