From 25fdd5d1347767f0b90aed1990cc835a75daabf9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 12 Jan 2010 11:48:45 -0800 Subject: [PATCH] Fix up sched.h for XPG7. --- ChangeLog | 4 ++++ posix/sched.h | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 126f7589a3..6e524cc2e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-01-12 Ulrich Drepper + + * posix/sched.h: Define time_t and pid_t for XPG7. + 2010-01-12 H.J. Lu * sysdeps/i386/i686/bcopy.S: New file. diff --git a/posix/sched.h b/posix/sched.h index e95c80f562..55bc487b37 100644 --- a/posix/sched.h +++ b/posix/sched.h @@ -1,5 +1,6 @@ /* Definitions for POSIX 1003.1b-1993 (aka POSIX.4) scheduling interface. - Copyright (C) 1996,1997,1999,2001-2004,2007 Free Software Foundation, Inc. + Copyright (C) 1996,1997,1999,2001-2004,2007,2010 + Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -28,9 +29,16 @@ #define __need_size_t #include +#define __need_time_t #define __need_timespec #include +#ifndef __pid_t_defined +typedef __pid_t pid_t; +# define __pid_t_defined +#endif + + /* Get system specific constant and data structure definitions. */ #include /* Define the real names for the elements of `struct sched_param'. */ -- 2.11.4.GIT