Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
21 lines
504 B
Diff
21 lines
504 B
Diff
Remove references to sys/sysctl.h which were deprecated long ago.
|
|
|
|
diff --git a/src/cpulimit.c b/src/cpulimit.c
|
|
index 50eabea..eba4615 100644
|
|
--- a/src/cpulimit.c
|
|
+++ b/src/cpulimit.c
|
|
@@ -38,7 +38,9 @@
|
|
#include <string.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/time.h>
|
|
+#ifdef __APPLE__
|
|
#include <sys/sysctl.h>
|
|
+#endif
|
|
#include <sys/resource.h>
|
|
#include <sys/types.h>
|
|
#include <sys/wait.h>
|
|
|
|
-#ifdef __APPLE__ || __FREEBSD__
|
|
+#if defined(__APPLE__) || defined(__FREEBSD__)
|
|
#include <libgen.h>
|
|
#endif
|