rbowler/spinhawk

3.09 fails to build via homebrew on Mac OS X 10.9

ButchAnton opened this issue · 3 comments

When trying to install hercules version 3.09 via homebrew, the build failed with two errors involving SOL_TCP. Here is the first:

clang -DHAVE_CONFIG_H -I. -I. -I./decNumber -DPKGDATADIR="/usr/local/Cellar/hercules/3.09/share/hercules" -DMODULESDIR="/usr/local/Cellar/hercules/3.09/lib/hercules" -W -Wall -c hdl.c -fno-common -DPIC -o .libs/hdl.o
hscutl.c:704:26: error: use of undeclared identifier 'SOL_TCP'
rc = setsockopt(sfd, SOL_TCP, TCP_KEEPINTVL, &optval, sizeof(optval));
^
SOL_TCP appears to be a linux specific network identifier (include/linux/socket.h).

Yes, I found that, too. Sorry that I didn¹t put it in the bug report.

Fixed in rbowler/spinhawk by f5601e9
Fix will be in version 3.10