summaryrefslogtreecommitdiff
path: root/lib/libc/sys/preadv.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/preadv.c')
-rw-r--r--lib/libc/sys/preadv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/sys/preadv.c b/lib/libc/sys/preadv.c
index 84da9271016..1a814e7bb81 100644
--- a/lib/libc/sys/preadv.c
+++ b/lib/libc/sys/preadv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: preadv.c,v 1.3 2002/09/17 12:57:50 mickey Exp $ */
+/* $OpenBSD: preadv.c,v 1.4 2002/09/17 21:16:01 deraadt Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -34,7 +34,7 @@
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: preadv.c,v 1.3 2002/09/17 12:57:50 mickey Exp $";
+static char rcsid[] = "$OpenBSD: preadv.c,v 1.4 2002/09/17 21:16:01 deraadt Exp $";
#endif /* SYSLIBC_SCCS and not lint */
#include <sys/types.h>
@@ -53,10 +53,11 @@ preadv(fd, iovp, iovcnt, offset)
int iovcnt;
off_t offset;
{
+ extern off_t __syscall();
quad_t q;
int rv;
- q = __syscall(SYS_preadv, fd, iovp, iovcnt, 0, offset);
+ q = __syscall((quad_t)SYS_preadv, fd, iovp, iovcnt, 0, offset);
if (/* LINTED constant */ sizeof (quad_t) == sizeof (register_t) ||
/* LINTED constant */ BYTE_ORDER == LITTLE_ENDIAN)
rv = (int)q;