projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: Add OSX clock_gettime compat
[lttng-tools.git]
/
tests
/
utils
/
utils.c
diff --git
a/tests/utils/utils.c
b/tests/utils/utils.c
index e7bd9ce9fbeef567bd8abb79434f8d728f6813c3..7aa8667d4f4520891d4b5d013ae752641897dde8 100644
(file)
--- a/
tests/utils/utils.c
+++ b/
tests/utils/utils.c
@@
-16,7
+16,7
@@
*/
#include <stdint.h>
*/
#include <stdint.h>
-#include <time.h>
+#include <
common/compat/
time.h>
#include <assert.h>
#include <unistd.h>
#include <stdio.h>
#include <assert.h>
#include <unistd.h>
#include <stdio.h>
@@
-43,7
+43,7
@@
int usleep_safe(useconds_t usec)
struct timespec t1, t2;
int64_t time_remaining_ns = (int64_t) usec * (int64_t) NSEC_PER_USEC;
struct timespec t1, t2;
int64_t time_remaining_ns = (int64_t) usec * (int64_t) NSEC_PER_USEC;
- ret = clock_gettime(CLOCK_MONOTONIC, &t1);
+ ret =
lttng_
clock_gettime(CLOCK_MONOTONIC, &t1);
if (ret) {
ret = -1;
perror("clock_gettime");
if (ret) {
ret = -1;
perror("clock_gettime");
This page took
0.025007 seconds
and
5
git commands to generate.