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/preadv.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/preadv.c')
-rw-r--r-- | lib/libc/sys/preadv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/sys/preadv.c b/lib/libc/sys/preadv.c index 2608da327f5..99a3dfecfd0 100644 --- a/lib/libc/sys/preadv.c +++ b/lib/libc/sys/preadv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: preadv.c,v 1.1 2000/04/20 06:34:37 deraadt Exp $ */ +/* $OpenBSD: preadv.c,v 1.2 2001/05/05 22:58:29 millert Exp $ */ /* * Copyright (c) 1992, 1993 @@ -34,7 +34,7 @@ */ #if defined(SYSLIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: preadv.c,v 1.1 2000/04/20 06:34:37 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: preadv.c,v 1.2 2001/05/05 22:58:29 millert Exp $"; #endif /* SYSLIBC_SCCS and not lint */ #include <sys/types.h> @@ -53,6 +53,7 @@ preadv(fd, iovp, iovcnt, offset) int iovcnt; off_t offset; { + extern off_t __syscall(); quad_t q; int rv; |