diff options
author | dt1973 <dt1973@users.noreply.github.com> | 2015-03-12 08:37:29 +0100 |
---|---|---|
committer | dt1973 <dt1973@users.noreply.github.com> | 2015-03-12 08:37:29 +0100 |
commit | 8efde826648b108d804ef99b57e58c7e0b6df507 (patch) | |
tree | 24701084da63429ce17186a479b055bbee3bbefc | |
parent | fd48ecf5a123ddaf5dd02d7928f975db719975bb (diff) | |
download | cpulimit-8efde826648b108d804ef99b57e58c7e0b6df507.tar.gz |
Fix build errors on FreeBSD
-rw-r--r-- | src/cpulimit.c | 4 | ||||
-rw-r--r-- | tests/process_iterator_test.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/cpulimit.c b/src/cpulimit.c index dc61c3b..50eabea 100644 --- a/src/cpulimit.c +++ b/src/cpulimit.c @@ -43,6 +43,10 @@ #include <sys/types.h> #include <sys/wait.h> +#ifdef __APPLE__ || __FREEBSD__ +#include <libgen.h> +#endif + #include "process_group.h" #include "list.h" diff --git a/tests/process_iterator_test.c b/tests/process_iterator_test.c index 20ef479..1615196 100644 --- a/tests/process_iterator_test.c +++ b/tests/process_iterator_test.c @@ -28,7 +28,7 @@ #include <signal.h> #include <string.h> -#ifdef __APPLE__ +#ifdef __APPLE__ || __FREEBSD__ #include <libgen.h> #endif |