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}
This commit is contained in:
Peter Barker 2024-07-10 14:07:48 +10:00 committed by Peter Barker
parent 7477c4e205
commit b2a7fcda5c
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <sys/time.h>
extern const AP_HAL::HAL& hal; extern const AP_HAL::HAL& hal;