Browse Source

posix: fix redefined clockid_t on macOS

master
smlng 6 years ago
parent
commit
16bd7db5dc
  1. 7
      sys/posix/pthread/include/pthread_cond.h

7
sys/posix/pthread/include/pthread_cond.h

@ -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…
Cancel
Save