From efb10c557b32a0e4e627a63e88652a393c2b8a5d Mon Sep 17 00:00:00 2001 From: vidplace7 Date: Wed, 6 Nov 2024 09:04:18 -0500 Subject: [PATCH] uclibc compatibility Adds compatibility with uclibc, the officially supported toolchain of the luckfox pico --- src/mesh/StreamAPI.h | 1 + src/modules/PositionModule.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesh/StreamAPI.h b/src/mesh/StreamAPI.h index 45cbb231c..6e0364bc1 100644 --- a/src/mesh/StreamAPI.h +++ b/src/mesh/StreamAPI.h @@ -3,6 +3,7 @@ #include "PhoneAPI.h" #include "Stream.h" #include "concurrency/OSThread.h" +#include // A To/FromRadio packet + our 32 bit header #define MAX_STREAM_BUF_SIZE (MAX_TO_FROM_RADIO_SIZE + sizeof(uint32_t)) diff --git a/src/modules/PositionModule.cpp b/src/modules/PositionModule.cpp index b7def8242..1374681c4 100644 --- a/src/modules/PositionModule.cpp +++ b/src/modules/PositionModule.cpp @@ -17,9 +17,7 @@ #include "sleep.h" #include "target_specific.h" -extern "C" { #include -} PositionModule *positionModule;