Declare getrusage.

It's defined publicly in libc, so publicly declare it too.
This commit is contained in:
Dan Gohman 2019-04-19 17:19:55 -07:00
parent ec9f1c3956
commit 49f1a57cb8

View File

@ -6,4 +6,14 @@
#define RUSAGE_SELF 1 #define RUSAGE_SELF 1
#define RUSAGE_CHILDREN 2 #define RUSAGE_CHILDREN 2
#ifdef __cplusplus
extern "C" {
#endif
int getrusage(int who, struct rusage *usage);
#ifdef __cplusplus
}
#endif
#endif #endif