fix all missing instances of __cplusplus checks/extern "C" in headers
[musl] / include / sys / resource.h
index 99e383c..b918902 100644 (file)
@@ -1,10 +1,13 @@
 #ifndef        _SYS_RESOURCE_H
 #define        _SYS_RESOURCE_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define __NEED_id_t
 #define __NEED_time_t
 #define __NEED_struct_timeval
-#define __NEED_struct_rusage
 
 #include <bits/alltypes.h>
 
@@ -68,7 +71,17 @@ int setpriority (int, id_t, int);
 #define RLIMIT_NPROC   6
 #define RLIMIT_MEMLOCK 8
 #define RLIMIT_LOCKS   10
+#define RLIMIT_SIGPENDING 11
+#define RLIMIT_MSGQUEUE 12
+#define RLIMIT_NICE    13
+#define RLIMIT_RTPRIO  14
+#define RLIMIT_NLIMITS 15
 
+#define RLIM_NLIMITS RLIMIT_NLIMITS
 
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif