Follow-up Comment #6, bug #63185 (project make):

You're right, I forgot that it's always wrong to use ifdef/ifndef with
HAVE_DECL values in autoconf.

But, I don't understand why you've added the !defined(HAVE_SYS_LOADAVG_H) to
the check.  If the function is not declared we need to declare it, it doesn't
matter whether we have sys/loadavg.h or not.

I don't know of any system like this, but it could be that sys/loadavg.h
exists but still doesn't declare getloadavg().  And if it does declare
getloadavg(), then HAVE_DECL_GETLOADAVG will be 1 anyway not 0 and we don't
need to check it.

Am I missing something?  I don't want to get this wrong again.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63185>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to