nixpkgs/pkgs/tools/misc/cpulimit/get-missing-basename.patch
John Soo d0cdd897c3
cpulimit: use github sources at 0.2
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.
2022-07-06 11:08:59 -07:00

13 lines
269 B
Diff

diff --git a/src/process_group.c b/src/process_group.c
index 06d73a6..3ca66b0 100644
--- a/src/process_group.c
+++ b/src/process_group.c
@@ -20,6 +20,7 @@
*/
#include <string.h>
+#include <libgen.h>
#include <stdlib.h>
#include <limits.h>
#include <sys/time.h>