workaround redefinition of struct timeval on NetBSD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
Yorick Hardy

--- include/winsock.h	Sat May 17 10:09:32 2003
+++ include/winsock.h	Sat May 24 15:32:29 2003
@@ -65,6 +65,7 @@
 #  define timeval unix_timeval
 #  define select unix_select
 #  include <sys/types.h>
+#  include <sys/time.h>
 #  include <stdlib.h>
 #  undef fd_set
 #  undef timeval


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux