chiark / gitweb /
core: rework logic to determine when we decide to add automatic deps for mounts
[elogind.git] / src / basic / process-util.h
index 6cf3a40b1f6dd83cd3dd626fb2fd2ff0d68b9b41..e904feed0fde45975d4e18c9ab1abcfeb2dfac68 100644 (file)
@@ -26,8 +26,9 @@
 #include <stdio.h>
 #include <string.h>
 #include <sys/types.h>
+#include <sys/resource.h>
 
-#include "formats-util.h"
+#include "format-util.h"
 #include "macro.h"
 
 #define procfs_file_alloca(pid, field)                                  \
@@ -113,3 +114,9 @@ int sched_policy_from_string(const char *s);
 void valgrind_summary_hack(void);
 
 int pid_compare_func(const void *a, const void *b);
+
+#if 0 /// UNNEEDED by elogind
+static inline bool nice_is_valid(int n) {
+        return n >= PRIO_MIN && n < PRIO_MAX;
+}
+#endif // 0