diff options
author | Markus B. Moessner <kho237115@gmx.de> | 2022-09-26 19:20:08 +0200 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2022-09-26 13:44:21 -0400 |
commit | 01f6251c0969f92bf802e1c9f2acd199353a3956 (patch) | |
tree | b08bbe7d7373f3853b22b42fdb33041de8481601 /newlib | |
parent | d9dc88048aa1ba41b4ebb003f3ed7b8e042d3175 (diff) | |
download | newlib-01f6251c0969f92bf802e1c9f2acd199353a3956.zip newlib-01f6251c0969f92bf802e1c9f2acd199353a3956.tar.gz newlib-01f6251c0969f92bf802e1c9f2acd199353a3956.tar.bz2 |
Fix missing extern C statement
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/include/sys/resource.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/resource.h b/newlib/libc/include/sys/resource.h index b99506b..c0a0d20 100644 --- a/newlib/libc/include/sys/resource.h +++ b/newlib/libc/include/sys/resource.h @@ -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_ */ |