From 49f1a57cb8b16bd108bb6e2206c2b98e6007e18a Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 19 Apr 2019 17:19:55 -0700 Subject: [PATCH] Declare getrusage. It's defined publicly in libc, so publicly declare it too. --- .../headers/public/__header_sys_resource.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libc-bottom-half/headers/public/__header_sys_resource.h b/libc-bottom-half/headers/public/__header_sys_resource.h index a77539c..bae9d5a 100644 --- a/libc-bottom-half/headers/public/__header_sys_resource.h +++ b/libc-bottom-half/headers/public/__header_sys_resource.h @@ -6,4 +6,14 @@ #define RUSAGE_SELF 1 #define RUSAGE_CHILDREN 2 +#ifdef __cplusplus +extern "C" { +#endif + +int getrusage(int who, struct rusage *usage); + +#ifdef __cplusplus +} +#endif + #endif