This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] Fix crtstuff.c compilation with mingw build.
- From: Steve Ellcey <sellcey at mips dot com>
- To: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 1 May 2014 09:44:30 -0700
- Subject: Re: [Patch] Fix crtstuff.c compilation with mingw build.
- Authentication-results: sourceware.org; auth=none
- References: <daed3e62-8ef6-4e1a-8143-00e13dd0860f at BAMAIL02 dot ba dot imgtec dot org> <yddk3ae63jo dot fsf at CeBiTec dot Uni-Bielefeld dot DE>
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