Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: [PATCH] HP-UX does not have select.h

From: Andreas Ericsson <hidden>
Date: 2016-06-15 22:44:00

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 <non-POSIX.1-2001 headers>
  #else
  # include <sys/select.h>
  #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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help