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 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?)

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index