Fix missing extern C statement

This commit is contained in:
Markus B. Moessner 2022-09-26 19:20:08 +02:00 committed by Jeff Johnston
parent d9dc88048a
commit 01f6251c09
1 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,10 @@
#ifndef _SYS_RESOURCE_H_
#define _SYS_RESOURCE_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/time.h>
#define RUSAGE_SELF 0 /* calling process */
@ -13,5 +17,8 @@ struct rusage {
int getrusage (int, struct rusage*);
#ifdef __cplusplus
}
#endif
#endif /* !_SYS_RESOURCE_H_ */