summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-14 01:00:21 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-14 01:00:21 +0000
commit46b0d6acb30fb606dd0afd10965acf390f22a6c4 (patch)
tree401eb5ba31cafea0abf0e8e5ef4d11cbc8a2fce0 /libc/sysdeps/linux/common
parentaf0172162f7c653cad6a11ed1c1a5459bc154465 (diff)
64bit arches dont need no stinkin fcntl64
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/__syscall_fcntl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/__syscall_fcntl.c b/libc/sysdeps/linux/common/__syscall_fcntl.c
index f8652def6..19be50fc1 100644
--- a/libc/sysdeps/linux/common/__syscall_fcntl.c
+++ b/libc/sysdeps/linux/common/__syscall_fcntl.c
@@ -10,6 +10,7 @@
#include "syscalls.h"
#include <stdarg.h>
#include <fcntl.h>
+#include <bits/wordsize.h>
#if defined __UCLIBC_HAS_LFS__ && defined __NR_fcntl64
extern int __libc_fcntl64(int fd, int cmd, ...);
@@ -29,6 +30,7 @@ int __libc_fcntl(int fd, int cmd, ...)
arg = va_arg(list, long);
va_end(list);
+#if __WORDSIZE == 32
if (cmd == F_GETLK64 || cmd == F_SETLK64 || cmd == F_SETLKW64) {
#if defined __UCLIBC_HAS_LFS__ && defined __NR_fcntl64
return __libc_fcntl64(fd, cmd, arg);
@@ -37,6 +39,8 @@ int __libc_fcntl(int fd, int cmd, ...)
return -1;
#endif
}
+#endif
+
return (__syscall_fcntl(fd, cmd, arg));
}
libc_hidden_proto(__libc_fcntl)