[PATCH] Fix missing extern C statement

[email protected]
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
From: "Markus B. Moessner" <[email protected]>

---
 newlib/libc/include/sys/resource.h | 7 +++++++
 1 file changed, 7 insertions(+)

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_ */

--
2.20.1.windows.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.