From 6d346abd0ef63e69f44d3cb96cf16561abd6072f Mon Sep 17 00:00:00 2001 From: millert Date: Sat, 5 May 2001 22:58:29 +0000 Subject: Add missing __syscall() proto to fix pread() & friends on big endian machines. Found by me, solved by Theo ;-) --- lib/libc/sys/pread.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libc/sys/pread.c') diff --git a/lib/libc/sys/pread.c b/lib/libc/sys/pread.c index ba8f98afee7..f9e7ac0de0f 100644 --- a/lib/libc/sys/pread.c +++ b/lib/libc/sys/pread.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pread.c,v 1.1 2000/04/20 06:34:37 deraadt Exp $ */ +/* $OpenBSD: pread.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: pread.c,v 1.1 2000/04/20 06:34:37 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: pread.c,v 1.2 2001/05/05 22:58:29 millert Exp $"; #endif /* SYSLIBC_SCCS and not lint */ #include @@ -52,6 +52,7 @@ pread(fd, buf, nbyte, offset) size_t nbyte; off_t offset; { + extern off_t __syscall(); quad_t q; int rv; -- cgit v1.2.3-59-g8ed1b