mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Fix logger signed unsigned error with GCC 7.3 in Cygwin (#10009)
This commit is contained in:
parent
80cac6561f
commit
152c6db212
@ -64,13 +64,15 @@
|
||||
#include <replay/definitions.hpp>
|
||||
#include <version/version.h>
|
||||
|
||||
#ifdef __PX4_DARWIN
|
||||
#if defined(__PX4_DARWIN)
|
||||
#include <sys/param.h>
|
||||
#include <sys/mount.h>
|
||||
#else
|
||||
#include <sys/statfs.h>
|
||||
#endif
|
||||
|
||||
typedef decltype(statfs::f_bavail) px4_statfs_buf_f_bavail_t;
|
||||
|
||||
#define GPS_EPOCH_SECS ((time_t)1234567890ULL)
|
||||
|
||||
//#define DBGPRINT //write status output every few seconds
|
||||
|
||||
@ -112,7 +112,6 @@ typedef param_t px4_param_t;
|
||||
|
||||
#define PX4_ROOTFSDIR ""
|
||||
#define _PX4_IOC(x,y) _IOC(x,y)
|
||||
#define px4_statfs_buf_f_bavail_t int
|
||||
|
||||
// mode for open with O_CREAT
|
||||
#define PX4_O_MODE_777 0777
|
||||
@ -170,8 +169,6 @@ using ::isfinite;
|
||||
#define USEC_PER_TICK (1000000/PX4_TICKS_PER_SEC)
|
||||
#define USEC2TICK(x) (((x)+(USEC_PER_TICK/2))/USEC_PER_TICK)
|
||||
|
||||
#define px4_statfs_buf_f_bavail_t unsigned long
|
||||
|
||||
#ifdef __PX4_QURT
|
||||
|
||||
// QURT specific
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user