Fix logger signed unsigned error with GCC 7.3 in Cygwin (#10009)

This commit is contained in:
Matthias Grob 2018-07-24 23:39:45 +02:00 committed by Daniel Agar
parent 80cac6561f
commit 152c6db212
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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