diff --git a/libc/src/unistd/linux/lseek.cpp b/libc/src/unistd/linux/lseek.cpp --- a/libc/src/unistd/linux/lseek.cpp +++ b/libc/src/unistd/linux/lseek.cpp @@ -23,12 +23,10 @@ #ifdef SYS_lseek int ret = __llvm_libc::syscall_impl(SYS_lseek, fd, offset, whence); result = ret; -#elif defined(SYS_llseek) - long ret = __llvm_libc::syscall_impl(SYS_llseek, fd, - (long)(((uint64_t)(offset)) >> 32), - (long)offset, &result, whence); - result = ret; -#elif defined(SYS__llseek) +#elif defined(SYS_llseek) || defined(SYS__llseek) +#ifdef SYS_llseek +#define SYS__llseek SYS_llseek +#endif int ret = __llvm_libc::syscall_impl(SYS__llseek, fd, offset >> 32, offset, &result, whence); #else