diff options
Diffstat (limited to 'lib/libc/sys/ftruncate.c')
-rw-r--r-- | lib/libc/sys/ftruncate.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libc/sys/ftruncate.c b/lib/libc/sys/ftruncate.c index c7f4bf3a6b6..34da96b077f 100644 --- a/lib/libc/sys/ftruncate.c +++ b/lib/libc/sys/ftruncate.c @@ -32,17 +32,14 @@ */ #if defined(SYSLIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: ftruncate.c,v 1.7 1998/11/20 11:18:52 d Exp $"; +static char rcsid[] = "$OpenBSD: ftruncate.c,v 1.8 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" -#ifdef lint -quad_t __syscall(quad_t, ...); -#endif - /* * This function provides 64-bit offset padding that * is not supplied by GCC 1.X but is supplied by GCC 2.X. @@ -57,7 +54,7 @@ ftruncate(fd, length) if (_FD_LOCK(fd, FD_RDWR, NULL) != 0) { retval = -1; } else { - retval = __syscall((quad_t)SYS_ftruncate, fd, 0, length); + retval = __syscall(SYS_ftruncate, fd, 0, length); _FD_UNLOCK(fd, FD_RDWR); } return retval; |