[email protected] wrote:
> getloadavg.c fails to build on QNX 6.4.1.  /usr/include/nlist.h exists, so
> configure defines HAVE_NLIST_H.  This makes getloadavg.c define
> NLIST_STRUCT.  Since NLIST_STRUCT is defined, getloadavg.c assumes that
> n_name is a pointer, but /usr/include/nlist.h makes it a 12-character
> array.  This causes the compiler to generate an error when it tries to
> assign to the member.
>
> Would it be better to check for __QNX__ in getloadavg.c and handle this
> case or to create a configure test for this?

It would be better to add a configure test, in case some day __QNX__
changes some day.


Reply via email to