mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibC: Remove ASSERT_NOT_REACHED in getrusage
The gcc port was hitting that assertion for some reason. This patch fixes it.
This commit is contained in:
parent
0a55679de4
commit
2cafc36d9c
Notes:
sideshowbarker
2024-07-19 06:58:30 +09:00
Author: https://github.com/itamar8910 Commit: https://github.com/SerenityOS/serenity/commit/2cafc36d9c0 Pull-request: https://github.com/SerenityOS/serenity/pull/2097 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/bugaevc
1 changed files with 2 additions and 4 deletions
|
@ -25,8 +25,8 @@
|
|||
*/
|
||||
|
||||
#include <assert.h>
|
||||
#include <ulimit.h>
|
||||
#include <sys/resource.h>
|
||||
#include <ulimit.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
|
@ -38,12 +38,10 @@ long ulimit(int cmd, long newlimit)
|
|||
return -1;
|
||||
}
|
||||
|
||||
int getrusage(int who, struct rusage *usage)
|
||||
int getrusage(int who, struct rusage* usage)
|
||||
{
|
||||
(void)who;
|
||||
(void)usage;
|
||||
ASSERT_NOT_REACHED();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue