workaround redefinition of struct timeval on NetBSD

Todd Vierling tv at
Sat May 24 12:10:42 CDT 2003

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

-- Todd Vierling <tv at>

More information about the wine-devel mailing list