HAL_SITL: fix gcc build on macosx

This commit is contained in:
bugobliterator 2020-05-13 22:37:44 +05:30 committed by Peter Barker
parent 183e50b31f
commit 07907ac81d

View File

@ -6,7 +6,7 @@
#include <sys/time.h> #include <sys/time.h>
#include <fenv.h> #include <fenv.h>
#include <AP_BoardConfig/AP_BoardConfig.h> #include <AP_BoardConfig/AP_BoardConfig.h>
#if defined (__clang__) #if defined (__clang__) || (defined (__APPLE__) && defined (__MACH__))
#include <stdlib.h> #include <stdlib.h>
#else #else
#include <malloc.h> #include <malloc.h>