From 8382d377bd199ff05b88ae5d91d11713b30ea0e3 Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Wed, 3 Oct 2018 13:05:43 -0700 Subject: [PATCH] AP_HAL_ChibiOS: Add a BUFSIZ value --- libraries/AP_HAL_ChibiOS/hwdef/common/posix.h | 2 ++ libraries/AP_HAL_ChibiOS/hwdef/common/stdio.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/posix.h b/libraries/AP_HAL_ChibiOS/hwdef/common/posix.h index a09dfe57fb..31010a22ac 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/posix.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/posix.h @@ -37,6 +37,8 @@ along with this program. If not, see . #define MAXLN 128 #define ISSPACE " \t\n\r\f\v" +#define BUFSIZ 256 + ///@brief make sure we use our strerror_r function #ifdef __cplusplus diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/stdio.h b/libraries/AP_HAL_ChibiOS/hwdef/common/stdio.h index cc06779a32..b57111f8f2 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/stdio.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/stdio.h @@ -45,6 +45,8 @@ void free(void *ptr); extern int (*vprintf_console_hook)(const char *fmt, va_list arg); +#define L_tmpnam 32 + #ifdef __cplusplus } #endif