From bc61d27c616f517521826581f0401f5b81772a65 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 7 Mar 2014 20:54:03 +0000 Subject: Include all of from for older standards (bug 16670). This patch fixes one of the header namespace issues shown up by conformtest, failing to expose all symbols from as required by older standards. The patch keeps the existing behavior if __USE_XOPEN2K is defined (the default; POSIX.1-2001 was the version that made it optional to expose these symbols), but ensures that all the symbols from are exposed if an older standard is selected. Tested x86_64. [BZ #16670] * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define before #include of . [!__USE_XOPEN2K] (__need_timespec): Likewise. * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove. (test-xfail-UNIX98/sched.h/conform): Likewise. --- posix/sched.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'posix/sched.h') diff --git a/posix/sched.h b/posix/sched.h index f7da255..779109a 100644 --- a/posix/sched.h +++ b/posix/sched.h @@ -27,8 +27,10 @@ #define __need_size_t #include -#define __need_time_t -#define __need_timespec +#ifdef __USE_XOPEN2K +# define __need_time_t +# define __need_timespec +#endif #include #ifndef __pid_t_defined -- cgit v1.1