remove LFS64 symbol aliases; replace with dynamic linker remapping
[musl] / src / unistd / lseek.c
index 63cea58..f5b6668 100644 (file)
@@ -1,10 +1,9 @@
 #include <unistd.h>
 #include "syscall.h"
-#include "libc.h"
 
-off_t lseek(int fd, off_t offset, int whence)
+off_t __lseek(int fd, off_t offset, int whence)
 {
-#ifdef __NR__llseek
+#ifdef SYS__llseek
        off_t result;
        return syscall(SYS__llseek, fd, offset>>32, offset, &result, whence) ? -1 : result;
 #else
@@ -12,4 +11,4 @@ off_t lseek(int fd, off_t offset, int whence)
 #endif
 }
 
-LFS64(lseek);
+weak_alias(__lseek, lseek);