summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/prlimit.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/prlimit.c')
-rw-r--r--libc/sysdeps/linux/common/prlimit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/prlimit.c b/libc/sysdeps/linux/common/prlimit.c
index cdb64ba0d..f44dc1664 100644
--- a/libc/sysdeps/linux/common/prlimit.c
+++ b/libc/sysdeps/linux/common/prlimit.c
@@ -17,7 +17,9 @@
#include <sys/resource.h>
#include <sysdep.h>
+#include <bits/kernel-features.h>
+#if defined __ASSUME_PRLIMIT64
int
prlimit (__pid_t pid, enum __rlimit_resource resource,
const struct rlimit *new_rlimit, struct rlimit *old_rlimit)
@@ -25,3 +27,4 @@ prlimit (__pid_t pid, enum __rlimit_resource resource,
return INLINE_SYSCALL (prlimit64, 4, pid, resource, new_rlimit,
old_rlimit);
}
+#endif