Description: fix to build on non-Linux arches

Fix the build where it seems a code fix for Linux was likely untested
on other systems.
Define SCHED_BATCH in test-schedbatch, for systems that don't have it;
the corresponding RH BZ#741090 patch used the magic value 3 in output.c
anyway.

Bug-Debian: http://bugs.debian.org/677055
This commit is contained in:
Steven Chamberlain
2012-06-11 22:11:23 +10:00
committed by Craig Small
parent 2fb099df50
commit a5ba6b98c1
3 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,11 @@
#include <sys/time.h>
#include <sys/resource.h>
/* Defined in Linux headers only */
#ifndef SCHED_BATCH
#define SCHED_BATCH 3
#endif
int main(int argc, const char *argv[])
{
int nice = 19;