Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus B. Moessner <kho237115@gmx.de>2022-09-26 20:20:08 +0300
committerJeff Johnston <jjohnstn@redhat.com>2022-09-26 20:44:21 +0300
commit01f6251c0969f92bf802e1c9f2acd199353a3956 (patch)
treeb08bbe7d7373f3853b22b42fdb33041de8481601 /newlib/libc/include
parentd9dc88048aa1ba41b4ebb003f3ed7b8e042d3175 (diff)
Fix missing extern C statement
Diffstat (limited to 'newlib/libc/include')
-rw-r--r--newlib/libc/include/sys/resource.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/resource.h b/newlib/libc/include/sys/resource.h
index b99506bd8..c0a0d2019 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_ */