diff options
Diffstat (limited to 'lib/libc/sys/lseek.c')
-rw-r--r-- | lib/libc/sys/lseek.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/sys/lseek.c b/lib/libc/sys/lseek.c index 12d2a98c86f..c94d2c5689f 100644 --- a/lib/libc/sys/lseek.c +++ b/lib/libc/sys/lseek.c @@ -32,11 +32,12 @@ */ #if defined(SYSLIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: lseek.c,v 1.6 1998/11/20 11:18:53 d Exp $"; +static char rcsid[] = "$OpenBSD: lseek.c,v 1.7 2002/09/17 12:57:50 mickey Exp $"; #endif /* SYSLIBC_SCCS and not lint */ #include <sys/types.h> #include <sys/syscall.h> +#include <unistd.h> #include "thread_private.h" /* @@ -49,13 +50,12 @@ lseek(fd, offset, whence) off_t offset; int whence; { - extern off_t __syscall(); off_t retval; if (_FD_LOCK(fd, FD_RDWR, NULL) != 0) { retval = -1; } else { - retval = __syscall((quad_t)SYS_lseek, fd, 0, offset, whence); + retval = __syscall(SYS_lseek, fd, 0, offset, whence); _FD_UNLOCK(fd, FD_RDWR); } return retval; |