forked from aniani/vim
patch 8.2.5071: with some Mac OS version clockid_t is redefined
Problem: With some Mac OS version clockid_t is redefined. Solution: Adjust #ifdefs. (Ozaki Kiichi, closes #10549)
This commit is contained in:
parent
b5f0801b1f
commit
f5465ff5c8
@ -272,15 +272,14 @@
|
||||
|
||||
# include <dispatch/dispatch.h>
|
||||
|
||||
# if !defined(MAC_OS_X_VERSION_10_12) || \
|
||||
(MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12)
|
||||
# ifndef MAC_OS_X_VERSION_10_12
|
||||
typedef int clockid_t;
|
||||
# endif
|
||||
# ifndef CLOCK_REALTIME
|
||||
# define CLOCK_REALTIME 0
|
||||
# define CLOCK_REALTIME 0
|
||||
# endif
|
||||
# ifndef CLOCK_MONOTONIC
|
||||
# define CLOCK_MONOTONIC 1
|
||||
# define CLOCK_MONOTONIC 1
|
||||
# endif
|
||||
|
||||
struct itimerspec
|
||||
|
@ -734,6 +734,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
5071,
|
||||
/**/
|
||||
5070,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user