Module Name: src
Committed By: pooka
Date: Wed Nov 5 01:37:27 UTC 2014
Modified Files:
src/lib/librumpuser: rumpuser_port.h
Log Message:
fix clock_gettime emulation
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/lib/librumpuser/rumpuser_port.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/librumpuser/rumpuser_port.h
diff -u src/lib/librumpuser/rumpuser_port.h:1.38 src/lib/librumpuser/rumpuser_port.h:1.39
--- src/lib/librumpuser/rumpuser_port.h:1.38 Wed Nov 5 01:15:58 2014
+++ src/lib/librumpuser/rumpuser_port.h Wed Nov 5 01:37:27 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser_port.h,v 1.38 2014/11/05 01:15:58 pooka Exp $ */
+/* $NetBSD: rumpuser_port.h,v 1.39 2014/11/05 01:37:27 pooka Exp $ */
#ifndef _LIB_LIBRUMPUSER_RUMPUSER_PORT_H_
#define _LIB_LIBRUMPUSER_RUMPUSER_PORT_H_
@@ -123,6 +123,7 @@ clock_gettime(clockid_t clk, struct time
if (gettimeofday(&tv, 0) == 0) {
ts->tv_sec = tv.tv_sec;
ts->tv_nsec = tv.tv_usec * 1000;
+ return 0;
}
return -1;
}