AP_Baro: skip using posix headers for non-posix systems

This commit is contained in:
Siddharth Purohit 2018-02-02 00:43:54 +05:30 committed by Andrew Tridgell
parent d1a497f223
commit 175d806b5f
1 changed files with 2 additions and 0 deletions

View File

@ -6,10 +6,12 @@
#include <AP_BoardConfig/AP_BoardConfig.h>
#include <AP_BoardConfig/AP_BoardConfig_CAN.h>
#if HAL_OS_POSIX_IO
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#endif
extern const AP_HAL::HAL& hal;