About 1000 errors pop up when I compile, but here is a sample of what it looks like:

>> make darwin
make target=FreeBSD \
CC=gcc CXX=g++ \
CFLAGS=' -Wall -pipe -O3' \
CXFLAGS= \
LDFLAGS= \
LIBS='-lstdc++' \
opt='' \
crafty-make
gcc -Wall -pipe -O3 -DFreeBSD -c crafty.c
In file included from searchr.c:4,
from crafty.c:1:
chess.h:30:17: warning: missing whitespace after the macro name
In file included from chess.h:129,
from searchr.c:4,
from crafty.c:1:
lock.h:1:6: error: token "=" is not valid in preprocessor expressions
In file included from searchr.c:4,
from crafty.c:1:

....

After that, almost every error is of the following types:
1) dereferencing pointer to incomplete type
2) request for member in something not a structure or union