From a49a627f9176f5c92e96039c01f471ba3fef8341 Mon Sep 17 00:00:00 2001 From: opcm Date: Tue, 5 Dec 2023 13:37:12 +0100 Subject: [PATCH] sched_ calls are not supported on OSX --- src/pcm-sensor-server.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pcm-sensor-server.cpp b/src/pcm-sensor-server.cpp index 6e7aa692..bad816fd 100644 --- a/src/pcm-sensor-server.cpp +++ b/src/pcm-sensor-server.cpp @@ -3397,6 +3397,7 @@ int mainThrows(int argc, char * argv[]) { } #endif +#ifndef __APPLE__ if ( useRealtimePriority ) { int priority = sched_get_priority_min( SCHED_RR ); if ( priority == -1 ) { @@ -3414,6 +3415,7 @@ int mainThrows(int argc, char * argv[]) { } } } +#endif pid_t pid; if ( daemonMode )