AP_Filesystem: Added conditional compiling to errno declarations. QURT HAL already has this in errno.h.

This commit is contained in:
Eric Katzfey 2024-11-14 11:22:28 -08:00 committed by Peter Barker
parent 62565e6034
commit 7f4a20981a
2 changed files with 8 additions and 0 deletions

View File

@ -30,7 +30,11 @@
#include <GCS_MAVLink/GCS.h>
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;
#endif
#define IDLE_TIMEOUT_MS 30000

View File

@ -29,7 +29,11 @@
#define PACKED_NAME "param.pck"
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;
#endif
int AP_Filesystem_Param::open(const char *fname, int flags, bool allow_absolute_path)
{