svn commit: trunk/busybox/libbb
vda at busybox.net
vda at busybox.net
Sat Jun 7 23:43:43 UTC 2008
Author: vda
Date: 2008-06-07 16:43:43 -0700 (Sat, 07 Jun 2008)
New Revision: 22266
Log:
define CLOCK_MONOTONIC to 1 if it is not defined
Modified:
trunk/busybox/libbb/time.c
Changeset:
Modified: trunk/busybox/libbb/time.c
===================================================================
--- trunk/busybox/libbb/time.c 2008-06-07 22:14:25 UTC (rev 22265)
+++ trunk/busybox/libbb/time.c 2008-06-07 23:43:43 UTC (rev 22266)
@@ -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)
More information about the busybox-cvs
mailing list