Message ID | 0d3f2fde-d0d3-4430-bf3a-8b6ad16602aa@BAMAIL02.ba.imgtec.org |
---|---|
State | New |
Headers | show |
On Fri, Nov 01, 2013 at 11:15:02AM -0700, Steve Ellcey wrote: > --- a/gcc/system.h > +++ b/gcc/system.h > @@ -1060,6 +1060,14 @@ helper_const_non_const_cast (const char *p) > #define DEBUG_VARIABLE > #endif > > +#ifndef HAVE_CADDR_T > +typedef char *caddr_t; > +#endif > + > +#ifndef HAVE_SSIZE_T > +typedef int ssize_t > +#endif Missing ';'? Marek
On Fri, 2013-11-01 at 19:22 +0100, Marek Polacek wrote: > On Fri, Nov 01, 2013 at 11:15:02AM -0700, Steve Ellcey wrote: > > --- a/gcc/system.h > > +++ b/gcc/system.h > > @@ -1060,6 +1060,14 @@ helper_const_non_const_cast (const char *p) > > #define DEBUG_VARIABLE > > #endif > > > > +#ifndef HAVE_CADDR_T > > +typedef char *caddr_t; > > +#endif > > + > > +#ifndef HAVE_SSIZE_T > > +typedef int ssize_t > > +#endif > > Missing ';'? > > Marek Yes. Both my cross build and my native build set HAVE_SSIZE_T so I didn't see this. I really only changed ssize_t to make it consistent with caddr_t (which was causing me a problem) and to remove the use of the obsolete form of AC_CHECK_TYPE. Steve Ellcey sellcey@mips.com
diff --git a/gcc/configure.ac b/gcc/configure.ac index 5e686db..bc87073 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -1075,8 +1075,8 @@ int main() fi fi -AC_CHECK_TYPE(ssize_t, int) -AC_CHECK_TYPE(caddr_t, char *) +AC_CHECK_TYPES([ssize_t]) +AC_CHECK_TYPES([caddr_t]) GCC_AC_FUNC_MMAP_BLACKLIST diff --git a/gcc/system.h b/gcc/system.h index a1fc6de..108ec0e 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -1060,6 +1060,14 @@ helper_const_non_const_cast (const char *p) #define DEBUG_VARIABLE #endif +#ifndef HAVE_CADDR_T +typedef char *caddr_t; +#endif + +#ifndef HAVE_SSIZE_T +typedef int ssize_t +#endif + /* Get definitions of HOST_WIDE_INT and HOST_WIDEST_INT. */ #include "hwint.h"