Skip to content

Commit 45a845e

Browse files
authored
sched_ calls are not supported on OSX
1 parent 1747ebb commit 45a845e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pcm-sensor-server.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3397,6 +3397,7 @@ int mainThrows(int argc, char * argv[]) {
33973397
}
33983398
#endif
33993399

3400+
#ifndef __APPLE__
34003401
if ( useRealtimePriority ) {
34013402
int priority = sched_get_priority_min( SCHED_RR );
34023403
if ( priority == -1 ) {
@@ -3414,6 +3415,7 @@ int mainThrows(int argc, char * argv[]) {
34143415
}
34153416
}
34163417
}
3418+
#endif
34173419

34183420
pid_t pid;
34193421
if ( daemonMode )

0 commit comments

Comments
 (0)