naive work-around for time redefinition (#5193)
This commit is contained in:
parent
06740d674b
commit
5f6f444d55
2 changed files with 10 additions and 8 deletions
|
|
@ -117,6 +117,7 @@ else:
|
||||||
schedh = "#define _GNU_SOURCE\n#include <sched.h>"
|
schedh = "#define _GNU_SOURCE\n#include <sched.h>"
|
||||||
pthreadh = "#define _GNU_SOURCE\n#include <pthread.h>"
|
pthreadh = "#define _GNU_SOURCE\n#include <pthread.h>"
|
||||||
|
|
||||||
|
when not declared(Time):
|
||||||
when defined(linux):
|
when defined(linux):
|
||||||
type Time = clong
|
type Time = clong
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@ elif defined(posixRealtime):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# fallback Posix implementation:
|
# fallback Posix implementation:
|
||||||
|
when not declared(Time):
|
||||||
when defined(linux):
|
when defined(linux):
|
||||||
type Time = clong
|
type Time = clong
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue