diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-05-05 22:58:31 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-05-05 22:58:31 +0000 |
commit | fbc34f799cbcfd6cc636431f98c50270d8217cf6 (patch) | |
tree | 235e507f1fdfe2bd3c976ccabfdfa0850be6d4df /lib/libc/sys/pwrite.c | |
parent | 6c55b4cc33c2c440926274fc865516a32b843a4b (diff) |
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; |