Browse Source

Merge pull request #7134 from smlng/macos/fix/posix/clockid_t

posix: fix redefined clockid_t on macOS
master
Francisco Acosta 6 years ago committed by GitHub
parent
commit
3af1fe5675
  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