Skip to content

Commit

Permalink
AP_GPS: resolve compilation problem with timeval
Browse files Browse the repository at this point in the history
./../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}
  • Loading branch information
peterbarker committed Jul 10, 2024
1 parent 2025712 commit fe63c53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/AP_GPS/AP_GPS_SITL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>

extern const AP_HAL::HAL& hal;

Expand Down

0 comments on commit fe63c53

Please sign in to comment.