This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch] Guard inclusion of sys/wait.h in fixincludes/fixincl.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]