remove another invalid skip of locking in ungetwc
[oweals/musl.git] / src / unistd / lseek.c
index 0152866f8df42302f9bfb947796fef3c423dbb6a..0a5ed392bc03c231208933ff3c2376bcfcb5f3b3 100644 (file)
@@ -4,11 +4,11 @@
 
 off_t lseek(int fd, off_t offset, int whence)
 {
-#ifdef __NR__llseek
+#ifdef SYS__llseek
        off_t result;
-       return syscall5(__NR__llseek, fd, offset>>32, offset, (long)&result, whence) ? -1 : result;
+       return syscall(SYS__llseek, fd, offset>>32, offset, &result, whence) ? -1 : result;
 #else
-       return syscall3(__NR_lseek, fd, offset, whence);
+       return syscall(SYS_lseek, fd, offset, whence);
 #endif
 }