From fe63c53cf56f63d10da048132c4d1f604036a8f1 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 10 Jul 2024 14:07:48 +1000 Subject: [PATCH] AP_GPS: resolve compilation problem with timeval ./../libraries/AP_GPS/AP_GPS_SITL.cpp:37:27: error: aggregate 'timeval first_tv' has incomplete type and cannot be defined 37 | static struct timeval first_tv; | ^~~~~~~~ compilation terminated due to -Wfatal-errors. Waf: Leaving directory `/ardupilot/src/build/sitl' Build failed -> task in 'objs/AP_GPS' failed (exit status 1): {task 135805090486368: cxx AP_GPS_SITL.cpp -> AP_GPS_SITL.cpp.0.o} --- libraries/AP_GPS/AP_GPS_SITL.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_GPS/AP_GPS_SITL.cpp b/libraries/AP_GPS/AP_GPS_SITL.cpp index e671ce05f5e9b..c423983adf3d9 100644 --- a/libraries/AP_GPS/AP_GPS_SITL.cpp +++ b/libraries/AP_GPS/AP_GPS_SITL.cpp @@ -21,6 +21,7 @@ #include #include #include +#include extern const AP_HAL::HAL& hal;