Browse Source

Accept either __NR__lseek or __NR_lseek

In llseek.c, we already allow both variants; the same needs to be done here
to avoid duplicate definitions of lseek64_nocancel.

Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
Bernd Schmidt 12 years ago
parent
commit
0e28f4b890
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/sysdeps/linux/common/lseek.c

+ 1 - 1
libc/sysdeps/linux/common/lseek.c

@@ -39,7 +39,7 @@ off_t __NC(lseek)(int fd, off_t offset attribute_unused, int whence)
 #endif
 CANCELLABLE_SYSCALL(off_t, lseek, (int fd, off_t offset, int whence), (fd, offset, whence))
 lt_libc_hidden(lseek)
-#if defined __UCLIBC_HAS_LFS__ && (__WORDSIZE == 64 || !defined __NR__llseek)
+#if defined __UCLIBC_HAS_LFS__ && (__WORDSIZE == 64 || (!defined __NR__llseek && !defined __NR_llseek))
 strong_alias_untyped(__NC(lseek),__NC(lseek64))
 strong_alias_untyped(lseek,lseek64)
 lt_libc_hidden(lseek64)