Skip to content

Commit

Permalink
SITL: add missing header for timeval struct on alpine linux
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr committed Aug 12, 2024
1 parent 21751c5 commit 5fab441
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions libraries/SITL/SIM_GPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#if HAL_SIM_GPS_ENABLED

#include <time.h>
#include <sys/time.h>

#include <AP_BoardConfig/AP_BoardConfig.h>
#include <AP_HAL/AP_HAL.h>
Expand Down
1 change: 1 addition & 0 deletions libraries/SITL/SIM_GPS.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ param set SERIAL5_PROTOCOL 5

#if HAL_SIM_GPS_ENABLED

#include <sys/time.h>
#include "SIM_SerialDevice.h"

namespace SITL {
Expand Down
1 change: 1 addition & 0 deletions libraries/SITL/SIM_GPS_MSP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <SITL/SITL.h>

#include <time.h>
#include <sys/time.h>

using namespace SITL;

Expand Down
1 change: 1 addition & 0 deletions libraries/SITL/SIM_GPS_NMEA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <AP_HAL/AP_HAL.h>

#include <time.h>
#include <sys/time.h>

extern const AP_HAL::HAL& hal;

Expand Down
1 change: 1 addition & 0 deletions libraries/SITL/SIM_MicroStrain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*/
#include "SIM_MicroStrain.h"
#include <stdio.h>
#include <sys/time.h>
#include <unistd.h>
#include <fcntl.h>
#include <AP_HAL/utility/sparse-endian.h>
Expand Down
1 change: 1 addition & 0 deletions libraries/SITL/SIM_MicroStrain.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <SITL/SITL.h>
#include "SIM_SerialDevice.h"
#include <sys/time.h>

namespace SITL
{
Expand Down
1 change: 1 addition & 0 deletions libraries/SITL/SIM_VectorNav.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include "SIM_VectorNav.h"
#include <stdio.h>
#include <sys/time.h>
#include <unistd.h>
#include <fcntl.h>
#include <AP_Common/NMEA.h>
Expand Down

0 comments on commit 5fab441

Please sign in to comment.