Martin Panter added the comment:

What platform, C library, etc do you have? According to Posix, struct timespec 
is normally defined in <time.h>, but can also be gotten via various other 
include files, many of which are included before "pytime.h".

In particular, <Python.h> includes "pyport.h", which has conditional code for 
including <time.h>, <sys/select.h> and <sys/stat.h>. All of these should define 
timespec. It might be useful to check your pyconfig.h file to see if stuff like 
the following is defined:

/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#define TIME_WITH_SYS_TIME 1

----------
components: +Build -Library (Lib)
nosy: +martin.panter

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25853>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to