Something went wrong while setting issue due date.
Build failure on macOS Sierra due to redefinition of clockid_t and CLOCK_REALTIME
cvs-fast-export 1.4.3 fails to build on macOS Sierra (but builds fine on OS X El Capitan and earlier).
The error is:
In file included from /home/esr/public_html/cvs-fast-export//gram.y:8:
./cvs.h:437:13: error: typedef redefinition with different types ('int' vs 'enum clockid_t')
typedef int clockid_t;
^
/usr/include/time.h:171:3: note: previous definition is here
} clockid_t;
^
In file included from /home/esr/public_html/cvs-fast-export//gram.y:8:
./cvs.h:439:9: warning: 'CLOCK_REALTIME' macro redefined [-Wmacro-redefined]
#define CLOCK_REALTIME 0
^
/usr/include/time.h:154:9: note: previous definition is here
#define CLOCK_REALTIME _CLOCK_REALTIME
^
1 warning and 1 error generated.
This appears to be because cvs.h erroneously assumes clockid_t
and CLOCK_REALTIME
need to be defined on all Apple systems. Apple added these definitions in macOS Sierra.