bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #63185] configure fails to detect getloadavg declaration on sun and


From: Dmitry Goncharov
Subject: [bug #63185] configure fails to detect getloadavg declaration on sun and aix.
Date: Wed, 26 Oct 2022 15:28:57 -0400 (EDT)

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

i guess, it is possible that sys/loadavg.h exists, but still doesn't declare
getloadavg.

It is also possible that configure sets HAVE_DECL_GETLOADAVG to 0 and also
defines HAVE_SYS_LOADAVG_H and in this case there is a declaraion in
sys/loadavg.h and also in job.c. Which should be benign as long as the
declarations match.

This alone
++++
#if HAVE_DECL_GETLOADAVG == 0
int getloadavg (double loadavg[], int nelem);
#endif
----
gets the job done.

Btw, why do you include sys/time.h?


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]