From 28d780b265f71ebe735d480df1d10aef1ba029a7 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 26 Jun 2018 23:04:11 -0500 Subject: The prlimit probe broke when implicit function declarations became an error (see comment in ulimit.c about the glibc header bug), so copy prototype into the probe too. Without this ulimit always disabled by config probe. --- scripts/genconfig.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh index c16974d7..e8df5965 100755 --- a/scripts/genconfig.sh +++ b/scripts/genconfig.sh @@ -98,9 +98,11 @@ EOF echo -e '\tdepends on !TOYBOX_MUSL_NOMMU_IS_BROKEN' probesymbol TOYBOX_PRLIMIT << EOF + #include #include #include - + int prlimit(pid_t pid, int resource, const struct rlimit *new_limit, + struct rlimit *old_limit); int main(int argc, char *argv[]) { prlimit(0, 0, 0, 0); } EOF } -- cgit v1.2.3