summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/getrlimit64.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/getrlimit64.c')
-rw-r--r--libc/sysdeps/linux/common/getrlimit64.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/common/getrlimit64.c b/libc/sysdeps/linux/common/getrlimit64.c
index d537241eb..2945e6da7 100644
--- a/libc/sysdeps/linux/common/getrlimit64.c
+++ b/libc/sysdeps/linux/common/getrlimit64.c
@@ -17,15 +17,12 @@
02111-1307 USA. */
#include <_lfs_64.h>
-
-#include <sys/types.h>
-#include <sys/resource.h>
#include <bits/wordsize.h>
/* the regular getrlimit will work just fine for 64bit users */
+#if __WORDSIZE == 32
-#if defined __UCLIBC_HAS_LFS__ && __WORDSIZE == 32
-
+# include <sys/resource.h>
/* Put the soft and hard limits for RESOURCE in *RLIMITS.
Returns 0 if successful, -1 if not (and sets errno). */