summaryrefslogtreecommitdiffstats
path: root/lib/libsndio/sio_priv.h
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-04-03 03:13:32 +0000
committerguenther <guenther@openbsd.org>2013-04-03 03:13:32 +0000
commit27e638e420fdf0c213127b7029bcc9fd38b54087 (patch)
treefbdef435b8dbc5e1ea19560ef0cfe2e55362a092 /lib/libsndio/sio_priv.h
parentSet the stream orientation in open_{,w}memstream(). (diff)
downloadwireguard-openbsd-27e638e420fdf0c213127b7029bcc9fd38b54087.tar.xz
wireguard-openbsd-27e638e420fdf0c213127b7029bcc9fd38b54087.zip
Handle big time_t.
Use clock_gettime(CLOCK_MONOTONIC) instead of gettimeofday() when measuring time intervals for debugging output. ok ratchov@
Diffstat (limited to 'lib/libsndio/sio_priv.h')
-rw-r--r--lib/libsndio/sio_priv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libsndio/sio_priv.h b/lib/libsndio/sio_priv.h
index b8f8825526f..f95885d2aa9 100644
--- a/lib/libsndio/sio_priv.h
+++ b/lib/libsndio/sio_priv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sio_priv.h,v 1.4 2012/10/27 12:06:40 ratchov Exp $ */
+/* $OpenBSD: sio_priv.h,v 1.5 2013/04/03 03:13:32 guenther Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -40,7 +40,7 @@ struct sio_hdl {
unsigned long long wcnt; /* bytes written with sio_write() */
unsigned long long rcnt; /* bytes read with sio_read() */
long long realpos;
- struct timeval tv;
+ struct timespec ts;
struct sio_par par;
#endif
};