SWR 2.0 compiling problem

Posted by MasterJay on Sun 26 Sep 2004 08:11 PM — 2 posts, 14,698 views.

#0
The compiling went all well, up until this part:

gcc -c -g3 -Wall fight.c
fight.c :8:21: sys/dir.h: No such file or directory
fight.c: 1048: warning: unused variable 'dampmod'
make[1]: *** [fight.o] Error 1
make[1]: Leaving directory 'cygdrive/c/SWR2/swr-2.0/src'
make: *** [all] Error 2

I'm using cygwin, and SWR2.0 which my friend sent to me (he sent the Gzip file which he downloaded from this site's forum)

Any clue what I got to change to get this to work?

Canada #1
You probably need to use something like this in place of your sys/dir.h declaration at the top of that file:
#if defined(__CYGWIN__)
#include <io.h>
#else
#include <sys/dir.h>
#endif