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]

Re: [Patch] Fix crtstuff.c compilation with mingw build.


On Thu, 2014-04-24 at 19:27 +0200, Rainer Orth wrote:
> "Steve Ellcey " <sellcey@mips.com> writes:
> 
> > diff --git a/libgcc/crtstuff.c b/libgcc/crtstuff.c
> > index 12bed4b..d09455f 100644
> > --- a/libgcc/crtstuff.c
> > +++ b/libgcc/crtstuff.c
> > @@ -54,6 +54,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
> >  #include "auto-host.h"
> >  #undef pid_t
> >  #undef rlim_t
> > +#undef caddr_t
> >  #undef ssize_t
> >  #undef vfork
> >  #include "tconfig.h"
> 
> It seems the undef's were sorted alphabetically.  Please keep it this way.
> 
> 	Rainer

Here is an updated patch with caddr_t in alphabetical order.

Steve Ellcey
sellcey@mips.com



2014-05-01  Steve Ellcey  <sellcey@mips.com>

	* crtstuff.c: Undef caddr_t.


diff --git a/libgcc/crtstuff.c b/libgcc/crtstuff.c
index 12bed4b..3302ba5 100644
--- a/libgcc/crtstuff.c
+++ b/libgcc/crtstuff.c
@@ -52,6 +52,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
    identified the set of defines that need to go into auto-target.h,
    this will have to do.  */
 #include "auto-host.h"
+#undef caddr_t
 #undef pid_t
 #undef rlim_t
 #undef ssize_t



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