1 /* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License version 2. 4 * 5 * This program is distributed in the hope that it will be useful, 6 * but WITHOUT ANY WARRANTY; without even the implied warranty of 7 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 8 * GNU General Public License for more details. 9 * 10 * 11 * @pt:SS 12 * @pt:TSP 13 * Test that SCHED_SPORADIC is defined 14 */ 15 16 #include <sched.h> 17 #include <unistd.h> 18 19 #if (defined(_POSIX_SPORADIC_SERVER) && _POSIX_SPORADIC_SERVER != -1) \ 20 || (defined(_POSIX_THREAD_SPORADIC_SERVER) && \ 21 _POSIX_THREAD_SPORADIC_SERVER != -1) 22 23 #ifndef SCHED_SPORADIC 24 #error SCHED_SPORADIC not defined 25 #endif 26 27 #endif 28