diff --git a/Modules/timemodule.c b/Modules/timemodule.c index f631b05a647..ee3fb8db983 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -83,8 +83,12 @@ time_time(self, args) #ifdef HAVE_CLOCK #ifndef CLOCKS_PER_SEC +#ifdef CLK_TCK +#define CLOCKS_PER_SEC CLK_TCK +#else #define CLOCKS_PER_SEC 1000000 #endif +#endif static object * time_clock(self, args)