1 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
2 /* Replacement <sched.h> for platforms that lack it.
3    Copyright (C) 2008-2012 Free Software Foundation, Inc.
4 
5    This program is free software: you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 3 of the License, or
8    (at your option) any later version.
9 
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14 
15    You should have received a copy of the GNU General Public License
16    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
17 
18 #ifndef _GL_SCHED_H
19 
20 #if __GNUC__ >= 3
21 #pragma GCC system_header
22 #endif
23 
24 
25 /* The include_next requires a split double-inclusion guard.  */
26 #if 1
27 # include_next <sched.h>
28 #endif
29 
30 #ifndef _GL_SCHED_H
31 #define _GL_SCHED_H
32 
33 /* Get pid_t.
34    This is needed on glibc 2.11 (see
35    glibc bug <http://sourceware.org/bugzilla/show_bug.cgi?id=13198>)
36    and Mac OS X 10.5.  */
37 #include <sys/types.h>
38 
39 #if !1
40 
41 # if !GNULIB_defined_struct_sched_param
42 struct sched_param
43 {
44   int sched_priority;
45 };
46 #  define GNULIB_defined_struct_sched_param 1
47 # endif
48 
49 #endif
50 
51 #if !(defined SCHED_FIFO && defined SCHED_RR && defined SCHED_OTHER)
52 # define SCHED_FIFO   1
53 # define SCHED_RR     2
54 # define SCHED_OTHER  0
55 #endif
56 
57 #endif /* _GL_SCHED_H */
58 #endif /* _GL_SCHED_H */
59