mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #7134 from smlng/macos/fix/posix/clockid_t
posix: fix redefined clockid_t on macOS
This commit is contained in:
commit
3af1fe5675
@ -25,7 +25,12 @@
|
||||
# include "msp430_types.h"
|
||||
#endif
|
||||
|
||||
#if defined(__MACH__) || defined(__WITH_AVRLIBC__)
|
||||
#ifdef __MACH__
|
||||
/* needed for AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER */
|
||||
#include <AvailabilityMacros.h>
|
||||
#endif
|
||||
|
||||
#if defined(__WITH_AVRLIBC__) || (defined(__MACH__) && !defined(AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER))
|
||||
typedef int clockid_t;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user