diff options
author | anthk <anthk@texto-plano.xyz> | 2021-03-11 09:40:02 +0000 |
---|---|---|
committer | anthk <anthk@texto-plano.xyz> | 2021-03-11 09:40:02 +0000 |
commit | 5b21c81d6870e72629d3b12756e14a60bdc5261b (patch) | |
tree | d617edb6a939a19db9bb57216c380fb8618ebea9 /src/cpulimit.c | |
parent | d252394bc86670e39f8a9c5c52875b13645764af (diff) | |
download | cpulimit-master.tar.gz |
Diffstat (limited to 'src/cpulimit.c')
-rw-r--r-- | src/cpulimit.c | 4 |
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 |