Mercurial > hg > octave-kai > gnulib-hg
changeset 10807:832c2d47db65
Test also the existence of the SCHED_* macros.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 15 Nov 2008 13:09:57 +0100 |
parents | 88888cd66a05 |
children | 8406463c58a7 |
files | ChangeLog tests/test-sched.c |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2008-11-15 Bruno Haible <bruno@clisp.org> + * tests/test-sched.c: Test also the existence of the SCHED_* macros. + Make the 'sched' module work on platforms where <sched.h> exists but is incomplete (such as Haiku). * lib/sched.in.h; Include the system's <sched.h> if it exists.
--- a/tests/test-sched.c +++ b/tests/test-sched.c @@ -23,6 +23,9 @@ /* Check that 'struct sched_param' is defined. */ static struct sched_param a; +/* Check that the SCHED_* macris are defined and compile-time constants. */ +static int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER }; + static int f1; int