Skip to content

Commit

Permalink
patch 8.2.5071: with some Mac OS version clockid_t is redefined
Browse files Browse the repository at this point in the history
Problem:    With some Mac OS version clockid_t is redefined.
Solution:   Adjust #ifdefs. (Ozaki Kiichi, closes #10549)
  • Loading branch information
ichizok authored and brammool committed Jun 9, 2022
1 parent b5f0801 commit f5465ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/os_mac.h
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -734,6 +734,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
5071,
/**/
5070,
/**/
Expand Down

0 comments on commit f5465ff

Please sign in to comment.