diff options
author | 2001-05-05 22:58:29 +0000 | |
---|---|---|
committer | 2001-05-05 22:58:29 +0000 | |
commit | 6d346abd0ef63e69f44d3cb96cf16561abd6072f (patch) | |
tree | 09f1112ff62baeb0ac378a349a983aa0497392ff /lib/libc/sys/pwrite.c | |
parent | remove some private stuff people put into here (diff) | |
download | wireguard-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/pwrite.c')
-rw-r--r-- | lib/libc/sys/pwrite.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/sys/pwrite.c b/lib/libc/sys/pwrite.c index 5915d9f6cf6..aae8319c102 100644 --- a/lib/libc/sys/pwrite.c +++ b/lib/libc/sys/pwrite.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pwrite.c,v 1.1 2000/04/20 06:34:37 deraadt Exp $ */ +/* $OpenBSD: pwrite.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: pwrite.c,v 1.1 2000/04/20 06:34:37 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: pwrite.c,v 1.2 2001/05/05 22:58:30 millert Exp $"; #endif /* SYSLIBC_SCCS and not lint */ #include <sys/types.h> @@ -52,6 +52,7 @@ pwrite(fd, buf, nbyte, offset) size_t nbyte; off_t offset; { + extern off_t __syscall(); quad_t q; int rv; |