mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 05:23:16 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
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
|