Thanks for looking m35, turns out it doesn't really seem to be a MSYS/MinGW configuration problem after all.
I am somewhat embarrassed to admit it, but my initial examination of the newLISP files and whether they included time.h was somewhat cursory. time.h is actually included in four files in the newLISP file set: newlisp.h, nl-sock.c, nl-web.c, and win32-util.c. So what I did was this.
Seeing as that the compile errors were coming from timezone and gettimeofday redefinitions in the source code and that newlisp.h includes time.h, I surrounded the offending timezone and gettimeofday declarations like so:
Code Select
#ifndef WIN_32
struct timezone
{
int tz_minuteswest;
int tz_dsttime;
};
int gettimeofday( struct timeval *tp, struct timezone *tzp );
#endif
This enabled me to complie to newlisp.exe and run qa-dot successfully on WinXP SP2 using the Netbeans 5.5.1 IDE and the MSYS/MinGW toolset:
$ newlisp qa-dot
Testing built-in functions ...
...
ALL FUNCTIONS FINISHED SUCCESSFULL: C:msys1.0homedouglas polsonnewlisp-9.2.0newlisp.exe
total time: 9343
Make sense?
GC