[issue9079] Make gettimeofday available in time module
Alexander Belopolsky
report at bugs.python.org
Wed Jul 21 20:21:37 CEST 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
Interesting. As far as I can tell, struct timeval should not be used unless HAVE_GETTIMEOFDAY is defined:
+#ifdef HAVE_GETTIMEOFDAY
+typedef struct timeval _PyTime_timeval;
+#else
+typedef struct {
+ time_t tv_sec; /* seconds since Jan. 1, 1970 */
+ long tv_usec; /* and microseconds */
+} _PyTime_timeval;
+#endif
Brian, where do you get undefined symbol error?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9079>
_______________________________________
More information about the Python-bugs-list
mailing list