summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/sysdeps/linux/common/llseek.c2
-rw-r--r--libc/sysdeps/linux/common/lseek.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/llseek.c b/libc/sysdeps/linux/common/llseek.c
index 4ebef54ca..33cbe46c2 100644
--- a/libc/sysdeps/linux/common/llseek.c
+++ b/libc/sysdeps/linux/common/llseek.c
@@ -37,7 +37,7 @@ loff_t __libc_lseek64(int fd, loff_t offset, int whence)
(off_t) (offset & 0xffffffff), &result, whence) ?: result);
}
#else
-extern __off_t __libc_lseek(int fildes, off_t offset, int whence);
+extern __typeof(lseek) __libc_lseek;
libc_hidden_proto(__libc_lseek)
loff_t __libc_lseek64(int fd, loff_t offset, int whence)
diff --git a/libc/sysdeps/linux/common/lseek.c b/libc/sysdeps/linux/common/lseek.c
index 4e6bd9be6..56a73864f 100644
--- a/libc/sysdeps/linux/common/lseek.c
+++ b/libc/sysdeps/linux/common/lseek.c
@@ -10,7 +10,7 @@
#include "syscalls.h"
#include <unistd.h>
-extern __off_t __libc_lseek (int __fd, __off_t __offset, int __whence) __THROW;
+extern __typeof(lseek) __libc_lseek;
libc_hidden_proto(__libc_lseek)
#define __NR___libc_lseek __NR_lseek