mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
d0cdd897c3
The sourceforge page of limitCPU says the following: > Update: Mr Marletta has re-launched his CPUlimit project, adding new > features and improving OS X support. The new project is a re-write > and should not be considered drop-in compatible with this > project. The source code of the new CPUlimit project can be found on > github. We here at the LimitCPU project will continue to work with > downstream projects and with the resurrected CPUlimit project so > that both projects may grow and improve.
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
|