Compiling rad3R9 on CYGWIN

I've install the latest version of CYGWIN-X with the following packages:

xorg-server

xinit

xorg-docs

X-start-menu-icons

tcsh

nano

tiff

wget

twm

xclock

make

I then downloaded the source code to compile using the CYGWIN option,
but I get the following errors while compiling:

gcc -Dfreebsd -L/usr/lib -L/usr/X11R6/lib -I/usr/include/sys
-I/usr/include/X11 -I/usr/X11R6/include -DNOSTEREO -02 -c -o
unix_process.o unix_process.c

unix_process.c:14:22: sys/wait.h: No such file or directory

unix_process.c: In function 'open_process':

unix_process.c:49: warning passing arg 2 of 'execv' from incompatible
pointer type

unix_process.c:64: error: 'F_SETFD' undeclared (first use in this
function)

unix_process.c:64: error: (Each undeclared identifier is reported only
once for each function it appears in.)

unix_process.c:64: error: 'FD_CLOEXEC' undeclared (first use in this
function)

make: *** [unix_process.o] Error 1

I've checked /usr/include/sys for wait.h and it does exist, so I'm not
sure why I am getting this error. Any thoughts?

Thanks,

Richard

[email protected]