DataFlash: ifdef both __APPLE__ and __MACH__

This is how we do in other places and should mean that we are targetting
MacOS, not other apple products or other OSes using a mach kernel.
This commit is contained in:
Lucas De Marchi 2016-07-07 11:34:47 -03:00
parent d65f453da1
commit efb6b4c57e
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@
#include <time.h> #include <time.h>
#include <dirent.h> #include <dirent.h>
#include <AP_HAL/utility/RingBuffer.h> #include <AP_HAL/utility/RingBuffer.h>
#ifdef __APPLE__ #if defined(__APPLE__) && defined(__MACH__)
#include <sys/param.h> #include <sys/param.h>
#include <sys/mount.h> #include <sys/mount.h>
#elif !DATAFLASH_FILE_MINIMAL #elif !DATAFLASH_FILE_MINIMAL