summaryrefslogtreecommitdiffstats
path: root/src/sh_processcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sh_processcheck.c')
-rw-r--r--src/sh_processcheck.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sh_processcheck.c b/src/sh_processcheck.c
index f5601c9..a5786f0 100644
--- a/src/sh_processcheck.c
+++ b/src/sh_processcheck.c
@@ -751,7 +751,7 @@ static short sh_processes_check (pid_t pid, short res)
#endif
#endif
-#if !defined(sun) && !defined(__sun) && !defined(__sun__)
+#if !defined(sun) && !defined(__sun) && !defined(__sun__) && !defined(__OpenBSD__) && !defined(__APPLE__)
#ifdef _POSIX_PRIORITY_SCHEDULING
struct sched_param p;
#endif
@@ -785,8 +785,9 @@ static short sh_processes_check (pid_t pid, short res)
#endif
/* sched_getparam() is broken on solaris 10, may segfault in librt
+ * also not on MacOS
*/
-#if !defined(sun) && !defined(__sun) && !defined(__sun__)
+#if !defined(sun) && !defined(__sun) && !defined(__sun__) && !defined(__OpenBSD__) && !defined(__APPLE__)
#ifdef _POSIX_PRIORITY_SCHEDULING
if (0 == sched_getparam (pid, &p))
{