]> granicus.if.org Git - procps-ng/commitdiff
Added debian patch for kfreebsd bug 674785
authorCraig Small <csmall@enc.com.au>
Tue, 30 Oct 2012 10:36:04 +0000 (21:36 +1100)
committerCraig Small <csmall@enc.com.au>
Tue, 30 Oct 2012 10:36:04 +0000 (21:36 +1100)
testsuite/ps.test/test-schedbatch.c

index 20cf2966fe76898ec6dc0ba377ab45ccc0b50e3e..9b4d334113e7859ebf7343b21c78429a9039bc7e 100644 (file)
@@ -30,9 +30,11 @@ int main(int argc, const char *argv[])
                nice = atoi(argv[1]);
        }
        sp.sched_priority = 0;
+#ifdef SCHED_BATCH
        if (sched_setscheduler(0, SCHED_BATCH, &sp)) {
                perror("sched_setscheduler(0,SCHED_BATCH,{.sched_priority=0}");
        }
+#endif /* SCHED_BATCH */
        if (setpriority(PRIO_PROCESS, 0, nice) || errno) {
                (void)snprintf(msg, sizeof(msg),
                               "setpriority(PRIO_PROCESS, 0, %d)", nice);