|
From: Ethan M. <merritt@u.washington.edu> - 2010-02-18 02:06:56
|
On Wednesday 17 February 2010 17:14:49 Shigeharu TAKENO wrote: > shige 02/18 2010 > ---------------- > > src/term.c of current version > > $Id: term.c,v 1.197 2010/02/17 06:21:31 sfeam Exp $ > > includes the function trunc(), but Solaris 9 does not have it. I noticed the same problem when I tried to build on a machine at the lab today. Although trunc() is part of the C99 standard, unfortunately too many machines are not yet using a C99 compliant compiler. But trunc() and rint() are not at all the same. It does not work to replace one by the other. I will re-write the code in do_arc() to use explicit tests rather than calling an external function. Ethan > So, we needs the following patch on Solaris: > > ----- From here ----- > --- src/term.c.ORG Thu Feb 18 10:01:04 2010 > +++ src/term.c Thu Feb 18 09:57:17 2010 > @@ -106,6 +106,10 @@ > # endif /* MSC */ > #endif /* _Windows */ > > +#ifdef __sun > +# #define trunc(x) rint(x) > +#endif > + > static int termcomp __PROTO((const generic * a, const generic * b)); > > /* Externally visible variables */ > ----- To here ----- > > +========================================================+ > Shigeharu TAKENO NIigata Institute of Technology > kashiwazaki,Niigata 945-1195 JAPAN > sh...@ie... TEL(&FAX): +81-257-22-8161 > +========================================================+ |