projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8fa04f
)
define CLOCK_MONOTONIC to 1 if it is not defined
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 7 Jun 2008 23:43:43 +0000
(23:43 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 7 Jun 2008 23:43:43 +0000
(23:43 -0000)
libbb/time.c
patch
|
blob
|
history
diff --git
a/libbb/time.c
b/libbb/time.c
index 3aa0ee318f4d728f3474668daa42440af599bf70..07c00941752b45c204b05b8acbe758c289e66476 100644
(file)
--- a/
libbb/time.c
+++ b/
libbb/time.c
@@
-12,6
+12,12
@@
#if ENABLE_MONOTONIC_SYSCALL
#include <sys/syscall.h>
+/* Old glibc (< 2.3.4) does not provide this constant. We use syscall
+ * directly so this definition is safe. */
+#ifndef CLOCK_MONOTONIC
+#define CLOCK_MONOTONIC 1
+#endif
+
/* libc has incredibly messy way of doing this,
* typically requiring -lrt. We just skip all this mess */
unsigned long long monotonic_us(void)