diff options
Diffstat (limited to 'lib/libc/sys/preadv.c')
-rw-r--r-- | lib/libc/sys/preadv.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/libc/sys/preadv.c b/lib/libc/sys/preadv.c index 5e008f47ce1..3b53ffafd76 100644 --- a/lib/libc/sys/preadv.c +++ b/lib/libc/sys/preadv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: preadv.c,v 1.10 2015/09/11 13:26:20 guenther Exp $ */ +/* $OpenBSD: preadv.c,v 1.11 2016/05/07 19:05:22 guenther Exp $ */ /* * Copyright (c) 1992, 1993 @@ -29,25 +29,22 @@ * SUCH DAMAGE. */ +#include <sys/types.h> #include <sys/syscall.h> #include <sys/uio.h> -#include <unistd.h> -#include "thread_private.h" ssize_t __syscall(quad_t, ...); PROTO_NORMAL(__syscall); -STUB_PROTOTYPE(preadv); - -STUB_ALIAS(preadv); +DEF_SYS(preadv); /* * This function provides 64-bit offset padding that * is not supplied by GCC 1.X but is supplied by GCC 2.X. */ ssize_t -STUB_NAME(preadv)(int fd, const struct iovec *iovp, int iovcnt, off_t offset) +HIDDEN(preadv)(int fd, const struct iovec *iovp, int iovcnt, off_t offset) { return (__syscall(SYS_preadv, fd, iovp, iovcnt, 0, offset)); } |