This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch] Guard inclusion of sys/wait.h in fixincludes/fixincl.c
- From: Danny Smith <danny_smith_0000 at yahoo dot co dot nz>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 18 May 2005 09:16:15 +1200 (NZST)
- Subject: [Patch] Guard inclusion of sys/wait.h in fixincludes/fixincl.c
- Reply-to: dannysmith at users dot sourceforge dot net
Hello
The inclusion of sys/wait.h by fixincludes/fixincl.c causes failure on targets without
<sys/wait.h>
The code that uses wait() is guarded by #ifndef SEPARATE_FIX_PROC, so guard header inclusion by
the same.
fixincludes/ChangeLog
2005-05-17 Danny Smith <dannysmith@users.souceforge.net>
* fixincl.c: Don't include <sys/wait.h> if SEPARATE_FIX_PROC.
Index: fixincl.c ===================================================================
RCS file: /cvs/gcc/gcc/fixincludes/fixincl.c,v
retrieving revision 1.7
diff -c -3 -p -r1.7 fixincl.c
*** fixincl.c 15 May 2005 18:28:36 -0000 1.7
--- fixincl.c 16 May 2005 20:27:25 -0000
*************** Boston, MA 02111-1307, USA. */
*** 24,30 ****
--- 24,32 ----
#include "fixlib.h"
#include <sys/stat.h>
+ #ifndef SEPARATE_FIX_PROC
#include <sys/wait.h>
+ #endif
#if defined( HAVE_MMAP_FILE )
#include <sys/mman.h>
Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com