diff options
author | Rob Landley <rob@landley.net> | 2018-06-26 23:04:11 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-06-26 23:04:11 -0500 |
commit | 28d780b265f71ebe735d480df1d10aef1ba029a7 (patch) | |
tree | 7ea6873bb03b05fe667f424495eb00d9ebb38263 /scripts | |
parent | a28099897695583e63d1eceaa62a18b395d6fbfe (diff) | |
download | toybox-28d780b265f71ebe735d480df1d10aef1ba029a7.tar.gz |
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.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/genconfig.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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 <sys/types.h> #include <sys/time.h> #include <sys/resource.h> - + 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 } |