From: Andreas Ericsson Date: Tue, 18 Dec 2007 09:30:55 GMT Subject: Re: [PATCH] HP-UX does not have select.h Message-ID: <4767934F.7070706@op5.se> In-Reply-To: <7v8x3t6nq1.fsf@gitster.siamese.dyndns.org> Junio C Hamano wrote: > > Besides, isn't _HPUX_SOURCE a feature-test macro? Feature test macros > are for the application to define, and for the implementation (iow, the > header files) to find out what set of names the application wants to > see. You are making the application examine the symbol to see what > implementation it is on, which feels backwards to me. #if defined(hpux) || defined(_hpux) || defined(__hpux) should work ok, although as you say, trying #if _POSIX_VERSION < 200112 # include #else # include #endif would probably be more suitable. -- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231