Set the clock id to CLOCK_REALTIME when calling clock_gettime.
Previously, time() allocated stack space for the clock id argument, but didn't actually set a value.
This commit is contained in:
@@ -66,3 +66,9 @@
|
||||
.global _clock_settime
|
||||
.global _localtime
|
||||
.global _mktime
|
||||
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; Constants
|
||||
|
||||
CLOCK_REALTIME = 0
|
||||
|
||||
Reference in New Issue
Block a user