git.samba.org
/
rusty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5568ced
)
s4/ldb: fix standalone build
author
Björn Jacke
<bj@sernet.de>
Wed, 1 Sep 2010 09:22:09 +0000
(11:22 +0200)
committer
Björn Jacke
<bj@sernet.de>
Wed, 1 Sep 2010 09:23:50 +0000
(11:23 +0200)
source4/lib/ldb/tools/ldbtest.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/tools/ldbtest.c
b/source4/lib/ldb/tools/ldbtest.c
index a885b80c72695a7be2e210d7b4bc04f51b2c2214..94dd2c696dcdaea5271162759682578db8d208bf 100644
(file)
--- a/
source4/lib/ldb/tools/ldbtest.c
+++ b/
source4/lib/ldb/tools/ldbtest.c
@@
-45,12
+45,16
@@
static struct ldb_cmdline *options;
static void _start_timer(void)
{
- clock_gettime_mono(&tp1);
+ if (clock_gettime(CUSTOM_CLOCK_MONOTONIC, &tp1) != 0) {
+ clock_gettime(CLOCK_REALTIME, &tp1);
+ }
}
static double _end_timer(void)
{
- clock_gettime_mono(&tp2);
+ if (clock_gettime(CUSTOM_CLOCK_MONOTONIC, &tp2) != 0) {
+ clock_gettime(CLOCK_REALTIME, &tp2);
+ }
return((tp2.tv_sec - tp1.tv_sec) +
(tp2.tv_nsec - tp1.tv_nsec)*1.0e-9);
}