summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/setrlimit64.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-10 04:17:33 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-10 04:17:33 +0000
commitef25eef9a18839cfd26eb5810296c62e4165b631 (patch)
tree6f06384abb0034d802f5babd2e2dbc7b0af5d9c2 /libc/sysdeps/linux/common/setrlimit64.c
parentc7dec4ce777a04faffdc5f36500474118f854550 (diff)
only check for rlimit stuff if the target doesnt support the newer function call, and dont bother with 64bit versions on 64bit hosts as the regular one works fine (should fix the setrlimit ltp tests)
Diffstat (limited to 'libc/sysdeps/linux/common/setrlimit64.c')
-rw-r--r--libc/sysdeps/linux/common/setrlimit64.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/setrlimit64.c b/libc/sysdeps/linux/common/setrlimit64.c
index b0d84de53..9b338f094 100644
--- a/libc/sysdeps/linux/common/setrlimit64.c
+++ b/libc/sysdeps/linux/common/setrlimit64.c
@@ -33,8 +33,11 @@
#include <sys/types.h>
#include <sys/resource.h>
+#include <bits/wordsize.h>
-#if defined __UCLIBC_HAS_LFS__
+/* the regular setrlimit will work just fine for 64bit users */
+
+#if defined __UCLIBC_HAS_LFS__ && __WORDSIZE == 32
libc_hidden_proto(setrlimit)