naive work-around for time redefinition (#5193)

This commit is contained in:
Fabian Keller 2017-01-08 17:53:43 +01:00 • committed by Andreas Rumpf
commit 5f6f444d55
2 changed files with 10 additions and 8 deletions

View file

@ -117,6 +117,7 @@ else:
schedh = "#define _GNU_SOURCE\n#include <sched.h>"
pthreadh = "#define _GNU_SOURCE\n#include <pthread.h>"
when not declared(Time):
when defined(linux):
type Time = clong
else:

View file

@ -78,6 +78,7 @@ elif defined(posixRealtime):
else:
# fallback Posix implementation:
when not declared(Time):
when defined(linux):
type Time = clong
else: