Test also the existence of the SCHED_* macros.
authorBruno Haible <bruno@clisp.org>
Sat, 15 Nov 2008 12:09:57 +0000 (13:09 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 15 Nov 2008 12:09:57 +0000 (13:09 +0100)
ChangeLog
tests/test-sched.c

index 0413633..f60579d 100644 (file)
--- 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.
index 77b2937..8925d3a 100644 (file)
@@ -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