linux.cf usage of HasMkstemp macro

Mike A. Harris mharris at www.linux.org.uk
Tue Jan 25 04:01:50 PST 2005


 From XFree86 4.1.0 up to and including xorg 6.8.x, linux.cf
seems to set the HasMkstemp to YES only if:

#if UseElfFormat || defined(AlphaArchitecture)
#ifndef HasSnprintf
#define HasSnprintf             YES
#endif
#define HasMkstemp              YES
#endif



Any idea why that "|| defined(AlphaArchitecture)" is there?  It looks 
very odd, and I don't see why the architecture would in any way affect 
wether or not snprintf or mkstemp exist.

Just trying to understand the logic behind the above construct while 
trying to debug why XFree86 4.1.0 is building on Linux aparently without 
using mkstemp(), and generating some warnings.



More information about the xorg mailing list