summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2013-04-02 21:32:06 +0000
committerkettenis <kettenis@openbsd.org>2013-04-02 21:32:06 +0000
commit3d7c6a783d8c1c32fb6e056eeb6fd19cfceae244 (patch)
treed6b7a69c82410fc4b735025befd63e881c47d93a
parentmake sure we always point before the current offset. (diff)
downloadwireguard-openbsd-3d7c6a783d8c1c32fb6e056eeb6fd19cfceae244.tar.xz
wireguard-openbsd-3d7c6a783d8c1c32fb6e056eeb6fd19cfceae244.zip
Use __off_t instead of off_t to make this usable on its own even in our
default compilation environment. ok espie@, millert@, guenther@
-rw-r--r--sys/sys/uio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/uio.h b/sys/sys/uio.h
index 5a82a5af812..c0aadca0477 100644
--- a/sys/sys/uio.h
+++ b/sys/sys/uio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uio.h,v 1.16 2012/10/01 00:21:20 guenther Exp $ */
+/* $OpenBSD: uio.h,v 1.17 2013/04/02 21:32:06 kettenis Exp $ */
/* $NetBSD: uio.h,v 1.12 1996/02/09 18:25:45 christos Exp $ */
/*
@@ -87,8 +87,8 @@ struct uio {
#ifndef _KERNEL
__BEGIN_DECLS
#if __BSD_VISIBLE
-ssize_t preadv(int, const struct iovec *, int, off_t);
-ssize_t pwritev(int, const struct iovec *, int, off_t);
+ssize_t preadv(int, const struct iovec *, int, __off_t);
+ssize_t pwritev(int, const struct iovec *, int, __off_t);
#endif /* __BSD_VISIBLE */
ssize_t readv(int, const struct iovec *, int);
ssize_t writev(int, const struct iovec *, int);