AP_HAL: allow replay on ChibiOS

This commit is contained in:
Andrew Tridgell 2020-11-09 13:06:04 +11:00
parent f4bf2ec3fe
commit 5e8380ff41

View File

@ -36,13 +36,12 @@
*/ */
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if HAL_OS_POSIX_IO
#include "getopt_cpp.h" #include "getopt_cpp.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#define GETOPT_ERROR(...) fprintf(stderr, __VA_ARGS__) #define GETOPT_ERROR(...) ::printf(__VA_ARGS__)
/* /*
@ -207,5 +206,3 @@ int GetOptLong::getoption(void)
return optopt; return optopt;
} }
#endif // HAL_OS_POSIX_IO