From d94a4670800de6e8f088b8630ad5142866127980 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 26 Feb 2012 21:32:56 -0500 Subject: Add first fixes for conformtest for POSIX2008 --- posix/spawn.h | 1 + posix/sys/wait.h | 8 +++++++- posix/unistd.h | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'posix') diff --git a/posix/spawn.h b/posix/spawn.h index 36205da7a7..9a82f0367d 100644 --- a/posix/spawn.h +++ b/posix/spawn.h @@ -21,6 +21,7 @@ #include #include +#define __need_sigset_t #include #include diff --git a/posix/sys/wait.h b/posix/sys/wait.h index 8983a8fa31..07d0374b92 100644 --- a/posix/sys/wait.h +++ b/posix/sys/wait.h @@ -137,9 +137,15 @@ extern __pid_t wait (__WAIT_STATUS __stat_loc); extern __pid_t waitpid (__pid_t __pid, int *__stat_loc, int __options); #if defined __USE_SVID || defined __USE_XOPEN || defined __USE_XOPEN2K8 -# include +# ifndef __id_t_defined +# include +typedef __id_t id_t; +# define __id_t_defined +# endif + # define __need_siginfo_t # include + /* Wait for a childing matching IDTYPE and ID to change the status and place appropriate information in *INFOP. If IDTYPE is P_PID, match any process whose process ID is ID. diff --git a/posix/unistd.h b/posix/unistd.h index 6f509e96d8..1f4d64516e 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -1158,7 +1158,7 @@ extern void swab (const void *__restrict __from, void *__restrict __to, /* The Single Unix specification demands this prototype to be here. It is also found in . */ -#if defined __USE_XOPEN || defined __USE_XOPEN2K8 +#if defined __USE_XOPEN && !defined __USE_XOPEN2K /* Return the name of the controlling terminal. */ extern char *ctermid (char *__s) __THROW; #endif -- cgit 1.4.1