[PATCH 2/2] Fix C++ visibilty of getrusage
kho237115 at gmx.de
kho237115 at gmx.de
Sun Sep 25 20:08:24 UTC 2022
From: kaidoho <kho237115 at gmail.com>
---
rtemsbsd/include/rtems/bsd/sys/resource.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/rtemsbsd/include/rtems/bsd/sys/resource.h b/rtemsbsd/include/rtems/bsd/sys/resource.h
index dc26c67c..107253d8 100644
--- a/rtemsbsd/include/rtems/bsd/sys/resource.h
+++ b/rtemsbsd/include/rtems/bsd/sys/resource.h
@@ -171,7 +171,11 @@ __BEGIN_DECLS
/* XXX 2nd arg to [gs]etpriority() should be an id_t */
int getpriority(int, int);
int getrlimit(int, struct rlimit *);
+
+#ifndef _cplusplus
int getrusage(int, struct rusage *);
+#endif /* !_cplusplus */
+
int setpriority(int, int, int);
int setrlimit(int, const struct rlimit *);
__END_DECLS
--
2.20.1.windows.1
More information about the devel
mailing list