fix broken reboot wrapper (syscall needs extra silly magic arguments...)
[musl] / include / sys / resource.h
index 42febc0..b918902 100644 (file)
@@ -1,6 +1,10 @@
 #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
@@ -73,9 +77,11 @@ int setpriority (int, id_t, int);
 #define RLIMIT_RTPRIO  14
 #define RLIMIT_NLIMITS 15
 
-#ifdef _GNU_SOURCE
-#define RLIMT_NLIMIT RLIMIT_NLIMITS
-#endif
+#define RLIM_NLIMITS RLIMIT_NLIMITS
 
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif