On Sat, 24 May 2003, Yorick Hardy wrote:
: Test programs which include winsock.h and time.h cause a redefinition : of struct timeval on NetBSD. This is because time.h includes sys/time.h. : A workaround is provided below.
The patch should probably #include <time.h>, not <sys/time.h>, to guarantee that native libc call prototypes continue to get the native definition of timeval.