Description: fixed to get it building on kFreeBSD
 Small tweaks to get procps working on kFreeBSD
Author: Petr Salinger <Petr.Salinger@seznam.cz>
Bug-Debian: http://bugs.debian.org/674785

--- a/testsuite/ps.test/test-schedbatch.c
+++ b/testsuite/ps.test/test-schedbatch.c
@@ -30,9 +30,11 @@
 		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);
