winsock.h: msvcrt headers versus systems headers
Yorick Hardy
yh at metroweb.co.za
Sat Jun 7 13:31:50 CDT 2003
On Sat, Jun 07, 2003 at 02:39:57PM +0200, Gerald Pfeifer wrote:
Gerald,
Then I think we should use <time.h> - removing the include statement
altogether will break compiling on NetBSD again.
(Unless of course someone else suggests a better solution)
Best regards,
--
Yorick Hardy
> Both including <time.h> and simple removing that #include statement
> from include/winsock.h solve this problem for me (on FreeBSD 4.8).
>
> My intuition is that either the addition of #include <sys/time.h> needs
> to reverted or a dummy include/msvcrt/sys/time.h needs to be added, as
> these are the only two ways of avoiding mixture of the MSVCRT sys/types.h
> with the native systems sys/time.h.
>
> (Or -I../../include/msvcrt should be removed when compiling
> programs/notepad, but I'm afraid that's not right either.)
>
> Gerald
> --
> Gerald "Jerry" pfeifer at dbai.tuwien.ac.at http://www.pfeifer.com/gerald/
>
-------------- next part --------------
--- include/winsock.h Sat Jun 7 20:27:10 2003
+++ include/winsock.h Sat Jun 7 20:27:22 2003
@@ -65,7 +65,7 @@
# define timeval unix_timeval
# define select unix_select
# include <sys/types.h>
-# include <sys/time.h>
+# include <time.h>
# include <stdlib.h>
# undef fd_set
# undef timeval
More information about the wine-devel
mailing list