Skip to content

Commit 8efde82

Browse files
committed
Fix build errors on FreeBSD
1 parent fd48ecf commit 8efde82

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/cpulimit.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
#include <sys/types.h>
4444
#include <sys/wait.h>
4545

46+
#ifdef __APPLE__ || __FREEBSD__
47+
#include <libgen.h>
48+
#endif
49+
4650
#include "process_group.h"
4751
#include "list.h"
4852

tests/process_iterator_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <signal.h>
2929
#include <string.h>
3030

31-
#ifdef __APPLE__
31+
#ifdef __APPLE__ || __FREEBSD__
3232
#include <libgen.h>
3333
#endif
3434

0 commit comments

Comments
 (0)