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 CONFIG_HAL_BOARD == HAL_BOARD_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX
|
||||||
|
|
||||||
|
#if defined(__APPLE__)
|
||||||
|
#include <sys/mount.h>
|
||||||
|
#else
|
||||||
#include <sys/vfs.h>
|
#include <sys/vfs.h>
|
||||||
|
#endif
|
||||||
#include <utime.h>
|
#include <utime.h>
|
||||||
|
|
||||||
extern const AP_HAL::HAL& hal;
|
extern const AP_HAL::HAL& hal;
|
||||||
|
@ -87,7 +87,9 @@ int apfs_remove(const char *pathname);
|
|||||||
#define ftell(stream) apfs_ftell(stream)
|
#define ftell(stream) apfs_ftell(stream)
|
||||||
#define freopen(pathname, mode, stream) apfs_freopen(pathname, mode, stream)
|
#define freopen(pathname, mode, stream) apfs_freopen(pathname, mode, stream)
|
||||||
#define remove(pathname) apfs_remove(pathname)
|
#define remove(pathname) apfs_remove(pathname)
|
||||||
|
#if !defined(__APPLE__)
|
||||||
int sprintf(char *str, const char *format, ...);
|
int sprintf(char *str, const char *format, ...);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user