Message 110496 - Python tracker (original) (raw)

It looks like my reluctance to add gettimeofday to core without using it there was well founded. Simply adding a dummy call to _PyTime_gettimeofday in main() fixed the build problem.

It's rather strange. I'm sure we have external API functions which never get called in the core. Just a couple of attempts found one candidate:

Hmm, after thinking about it, what happens is that the C object file is not used at all, so it's probably optimized away by the linker. In any case, you could use the new API in Python/thread_pthread.h.