make install fails on MacOSX 10.12
Brought to you by:
dholmes999
When running "make install" on OSX I get the following error:
Last 15 lines from /Users/j1019630/Library/Logs/Homebrew/ctorrent/02.make:
clang++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o bufio.o bufio.cpp
clang -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c compat.c
clang++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o connect_nonb.o connect_nonb.cpp
clang++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o console.o console.cpp
clang++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c -o ctcs.o ctcs.cpp
In file included from compat.c:11:
./compat.h:23:13: error: typedef redefinition with different types ('int' vs 'enum clockid_t')
typedef int clockid_t;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/time.h:171:3: note: previous definition is here
} clockid_t;
^
1 error generated.
make: *** [compat.o] Error 1
make: *** Waiting for unfinished jobs....