Skip to content

Commit c2e665d

Browse files
committed
Update cpulimit.c
systcl header is deprecated on linux. Protect include since it's used on APPLE.
1 parent 8c168fe commit c2e665d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Utilities/Tools/cpulimit/cpulimit.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
#include <string.h>
3939
#include <sys/stat.h>
4040
#include <sys/time.h>
41+
#if defined(__APPLE__)
4142
#include <sys/sysctl.h>
43+
#endif
4244
#include <sys/resource.h>
4345
#include <sys/types.h>
4446
#include <sys/wait.h>

0 commit comments

Comments
 (0)