Hefty, Sean wrote: >> #ifndef _SYS_TIME_H_ >> #define _SYS_TIME_H_ >> >> #include <winsock2.h> > > Is winsock needed? > >> #include <windows.h> >> #include <winsock2.h> > > same Yes for def of timeval - an odd place for it.