compiling bootloader

Cannot seem to get the C:
etos60_gnu\src\utilities\boothdr to compile (a confusing mess of #defines found in types.h) What is the proper way to deal with the defines and get this to compile?

$ make PLATFORM=connectme all
/bin/gcc -c -I. -I/usr/i686-cygwin/include -I/usr/i686-cygwin/include/cygwin -I…/…/…/h -g boothdr.c -o boothdr.o

In file included from /usr/arm-elf/include/sys/types.h:366,
from /usr/arm-elf/include/stdio.h:46,
from boothdr.c:33:
/usr/include/cygwin/types.h:187: conflicting types for mode_t' /usr/arm-elf/include/sys/types.h:177: previous declaration of mode_t’
make: *** [boothdr.o] Error 1

Had to delete the message. I posted wrong info.

Message was edited by: ieftimovski