Skip to content

Commit 35967c5

Browse files
committed
Fix compiler warning on MacOS
1 parent b29e0e9 commit 35967c5

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Utilities/Tools/cpulimit/cpulimit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#include <sys/types.h>
4444
#include <sys/wait.h>
4545

46-
#ifdef __APPLE__ || __FREEBSD__
46+
#if defined(__APPLE__) || defined(__FREEBSD__)
4747
#include <libgen.h>
4848
#endif
4949

Utilities/Tools/cpulimit/process_group.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2020
*/
2121

22+
#if defined(__APPLE__) || defined(__FREEBSD__)
23+
#include <libgen.h>
24+
#endif
25+
2226
#include <string.h>
2327
#include <stdlib.h>
2428
#include <limits.h>

0 commit comments

Comments
 (0)