summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/pwritev.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2001-05-05 22:58:29 +0000
committermillert <millert@openbsd.org>2001-05-05 22:58:29 +0000
commit6d346abd0ef63e69f44d3cb96cf16561abd6072f (patch)
tree09f1112ff62baeb0ac378a349a983aa0497392ff /lib/libc/sys/pwritev.c
parentremove some private stuff people put into here (diff)
downloadwireguard-openbsd-6d346abd0ef63e69f44d3cb96cf16561abd6072f.tar.xz
wireguard-openbsd-6d346abd0ef63e69f44d3cb96cf16561abd6072f.zip
Add missing __syscall() proto to fix pread() & friends on big endian
machines. Found by me, solved by Theo ;-)
Diffstat (limited to 'lib/libc/sys/pwritev.c')
-rw-r--r--lib/libc/sys/pwritev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/sys/pwritev.c b/lib/libc/sys/pwritev.c
index ff8c195d426..ec700195851 100644
--- a/lib/libc/sys/pwritev.c
+++ b/lib/libc/sys/pwritev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pwritev.c,v 1.1 2000/04/20 06:34:37 deraadt Exp $ */
+/* $OpenBSD: pwritev.c,v 1.2 2001/05/05 22:58:30 millert Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -34,7 +34,7 @@
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: pwritev.c,v 1.1 2000/04/20 06:34:37 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: pwritev.c,v 1.2 2001/05/05 22:58:30 millert Exp $";
#endif /* SYSLIBC_SCCS and not lint */
#include <sys/types.h>
@@ -53,6 +53,7 @@ pwritev(fd, iovp, iovcnt, offset)
int iovcnt;
off_t offset;
{
+ extern off_t __syscall();
quad_t q;
int rv;