mirror of
https://git.freebsd.org/ports.git
synced 2025-07-16 08:49:15 -04:00
20 lines
555 B
Text
20 lines
555 B
Text
$FreeBSD$
|
|
|
|
--- main.c.orig Sat Jun 1 19:42:24 2002
|
|
+++ main.c Thu Jul 4 19:32:12 2002
|
|
@@ -92,12 +92,15 @@
|
|
return;
|
|
}
|
|
|
|
+#ifndef __FreeBSD__
|
|
/* lock all pages into physical memory */
|
|
if (mlockall(MCL_CURRENT | MCL_FUTURE) != 0) {
|
|
fprintf(stderr, "csound: cannot lock memory pages: %s\n",
|
|
strerror(errno));
|
|
exit(-1);
|
|
}
|
|
+#endif
|
|
+
|
|
/* set round robin mode with max. priority */
|
|
p.sched_priority = sched_get_priority_max(SCHED_RR);
|
|
if (sched_setscheduler(0, SCHED_RR, &p) != 0) {
|