From 93431b861a3884606abb16e37d9fc91e636145b2 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sun, 9 May 2021 17:14:19 +0200 Subject: [PATCH] LibC: Add definition for the rlim_t type The missing type caused the binutils and dash ports to fail to build. --- Userland/Libraries/LibC/sys/resource.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibC/sys/resource.h b/Userland/Libraries/LibC/sys/resource.h index 0d1f2c9307..63adcfeb60 100644 --- a/Userland/Libraries/LibC/sys/resource.h +++ b/Userland/Libraries/LibC/sys/resource.h @@ -46,9 +46,11 @@ int getrusage(int who, struct rusage* usage); #define RLIM_INFINITY SIZE_MAX +typedef size_t rlim_t; + struct rlimit { - size_t rlim_cur; - size_t rlim_max; + rlim_t rlim_cur; + rlim_t rlim_max; }; int getrlimit(int, struct rlimit*);