tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Cross-building current sparc64 on Solaris



On 29/11/2010 01:33, David Holland wrote:
On Mon, Nov 29, 2010 at 12:34:39AM +0100, Volker A. Brandt wrote:
  >  >  >  In line #360, src/external/bsd/mdocml/dist/term_ps.c uses the MAX()
  >  >  >  macro, but nothing is pulled in that would define this macro.
  >  >
  >  >  Is there something that does on Solaris, or is Solaris missing MAX()
  >  >  entirely?
  >
  >  AFAICT it's not there.  At least I always had to define it myself.
  >  Is there a standard-y place where it ought to be?  (My guess would be
  >  "no" :-)

I don't think so, no. I guess the proper thing is to put

#ifndef MAX
#define MAX(a, b) ((a)>  (b) ? (a) : (b))
#endif

but this should preferably go in upstream... (Kristaps?)

Hi,

This is from an old version of mandoc.  See commit message:

----

Revision 1.40, Sun Aug 1 15:46:18 2010 UTC (3 months, 4 weeks ago) by joerg
Branch: MAIN
Changes since 1.39: +19 -16 lines

Turn the non-trivial PS_GROWBUF macro into a function. Don't use MAX, it
doesn't exist in the default namespace on Solaris.

----

This modification is part of the tagged 1.10.6 release.

Take care,

Kristaps


Home | Main Index | Thread Index | Old Index