This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Stopgap patch for gcc/fixinc/fixinc.c for older systems
- To: "Melissa O'Neill" <oneill at cs dot sfu dot ca>
- Subject: Re: Stopgap patch for gcc/fixinc/fixinc.c for older systems
- From: Jeffrey A Law <law at upchuck dot cygnus dot com>
- Date: Wed, 26 May 1999 03:53:50 -0600
- cc: EGCS Patches <egcs-patches at egcs dot cygnus dot com>, Bruce Korb <fixincludes at autogen dot freeservers dot com>
- Reply-To: law at cygnus dot com
In message <199905230756.AAA05569@aldrington.ppp.cs.sfu.ca>you write:
> The file gcc/fixinc/fixincl.c relies on several POSIXisms related to
> wait() (e.g., WSTOPSIG) and stat() (e.g., S_ISREG and S_IRUSR). Older
> systems, such as 4.x BSD (x<4), need definitions for these macros.
>
> Some of these are defined in gcc/system.h, but not all. If/when fixincl.c
> uses system.h, I can put the necessary definitions there, but as a stop-gap
> measure, I've put the necessary definitions directly into fixincl.c.
>
> (I might have tried making fixincl.c use system.h myself, but I saw that
> it was something on Bruce Korb's to-do list, so I'm assuming it's
> non-trivial for some reason (otherwise he'd have just done it, rather
> than write down that it should be done)).
I'm going to install this on the branch, but not in the mainline tree.
fixinc should be using system.h, and I don't see anything particularly
difficult about making it do so. So, let's do this right in the mainline
sources instead of hacking fixinc up in this manner.
Thanks,
jeff