diff options
| author | pooka <pooka@NetBSD.org> | 2014-11-05 01:37:27 +0000 |
|---|---|---|
| committer | pooka <pooka@NetBSD.org> | 2014-11-05 01:37:27 +0000 |
| commit | 130fecfa4e4803ff64e4bcaa7a08fa437815476b (patch) | |
| tree | 5ed93311248ded4a50ec7775a18e4b89d92c7c69 /lib | |
| parent | 6677bc77c4fa2b7c843b929564c03b080a5d053e (diff) | |
fix clock_gettime emulation
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/librumpuser/rumpuser_port.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/librumpuser/rumpuser_port.h b/lib/librumpuser/rumpuser_port.h index 652f44f775c..48a76405e12 100644 --- a/lib/librumpuser/rumpuser_port.h +++ b/lib/librumpuser/rumpuser_port.h @@ -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 timespec *ts) if (gettimeofday(&tv, 0) == 0) { ts->tv_sec = tv.tv_sec; ts->tv_nsec = tv.tv_usec * 1000; + return 0; } return -1; } |
