]> git.proxmox.com Git - wasi-libc.git/commitdiff
Declare getrusage.
authorDan Gohman <sunfish@mozilla.com>
Sat, 20 Apr 2019 00:19:55 +0000 (17:19 -0700)
committerDan Gohman <sunfish@mozilla.com>
Mon, 22 Apr 2019 18:41:40 +0000 (11:41 -0700)
It's defined publicly in libc, so publicly declare it too.

libc-bottom-half/headers/public/__header_sys_resource.h

index a77539cdc3d54a4fbe3a0c27ae274aafd0c46ce5..bae9d5aaca09cd67619f1f16452e3fa61127748c 100644 (file)
@@ -6,4 +6,14 @@
 #define RUSAGE_SELF 1
 #define RUSAGE_CHILDREN 2
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int getrusage(int who, struct rusage *usage);
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif