aboutsummaryrefslogtreecommitdiffstats
path: root/src/cpulimit.c
diff options
context:
space:
mode:
authoranthk <anthk@texto-plano.xyz>2021-03-11 09:40:02 +0000
committeranthk <anthk@texto-plano.xyz>2021-03-11 09:40:02 +0000
commit5b21c81d6870e72629d3b12756e14a60bdc5261b (patch)
treed617edb6a939a19db9bb57216c380fb8618ebea9 /src/cpulimit.c
parentd252394bc86670e39f8a9c5c52875b13645764af (diff)
downloadcpulimit-master.tar.gz
Ajustes olvidadosHEADmaster
Diffstat (limited to 'src/cpulimit.c')
-rw-r--r--src/cpulimit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cpulimit.c b/src/cpulimit.c
index 50eabea..a1a0a73 100644
--- a/src/cpulimit.c
+++ b/src/cpulimit.c
@@ -43,7 +43,7 @@
#include <sys/types.h>
#include <sys/wait.h>
-#ifdef __APPLE__ || __FREEBSD__
+#if (defined __APPLE__) || (defined __FREEBSD__) || (defined __OpenBSD__)
#include <libgen.h>
#endif
@@ -181,6 +181,8 @@ int get_pid_max()
return atoi(buffer);
#elif defined __FreeBSD__
return 99998;
+#elif defined __OpenBSD__
+ return 99998;
#elif defined __APPLE__
return 99998;
#endif
Un proyecto texto-plano.xyz