mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_Filesystem: Added conditional compiling to errno declarations. QURT HAL already has this in errno.h.
This commit is contained in:
parent
62565e6034
commit
7f4a20981a
@ -30,7 +30,11 @@
|
|||||||
#include <GCS_MAVLink/GCS.h>
|
#include <GCS_MAVLink/GCS.h>
|
||||||
|
|
||||||
extern const AP_HAL::HAL& hal;
|
extern const AP_HAL::HAL& hal;
|
||||||
|
|
||||||
|
// QURT HAL already has a declaration of errno in errno.h
|
||||||
|
#if CONFIG_HAL_BOARD != HAL_BOARD_QURT
|
||||||
extern int errno;
|
extern int errno;
|
||||||
|
#endif
|
||||||
|
|
||||||
#define IDLE_TIMEOUT_MS 30000
|
#define IDLE_TIMEOUT_MS 30000
|
||||||
|
|
||||||
|
@ -29,7 +29,11 @@
|
|||||||
#define PACKED_NAME "param.pck"
|
#define PACKED_NAME "param.pck"
|
||||||
|
|
||||||
extern const AP_HAL::HAL& hal;
|
extern const AP_HAL::HAL& hal;
|
||||||
|
|
||||||
|
// QURT HAL already has a declaration of errno in errno.h
|
||||||
|
#if CONFIG_HAL_BOARD != HAL_BOARD_QURT
|
||||||
extern int errno;
|
extern int errno;
|
||||||
|
#endif
|
||||||
|
|
||||||
int AP_Filesystem_Param::open(const char *fname, int flags, bool allow_absolute_path)
|
int AP_Filesystem_Param::open(const char *fname, int flags, bool allow_absolute_path)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user