[issue9079] Make gettimeofday available in time module

Brian Curtin report at bugs.python.org
Wed Jul 21 18:33:54 CEST 2010


Brian Curtin <curtin at acm.org> added the comment:

issue9079a.diff doesn't compile on Windows - timeval isn't defined. You'd have to include Winsock2.h [0]. Adding something like the following within the HAVE_FTIME block would work...
#ifdef MS_WINDOWS
#include <Winsock2.h>
#endif

I don't currently have time to dig deeper into this stuff, but test_queue hangs. Running the suite without test_queue leaves 31 other failures and something hangs in the background so the test never completes. That was all done with issue9079a.diff applied, plus my winsock include.


[0] http://msdn.microsoft.com/en-us/library/ms740560(VS.85).aspx

----------
nosy: +brian.curtin

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9079>
_______________________________________


More information about the Python-bugs-list mailing list