Include sys/param.h if present.

Needed for howmany() on MUSL systems such as Alpine.
This commit is contained in:
Darren Tucker 2022-02-22 12:27:07 +11:00
parent 5a102e9cb2
commit a4b325a3fc
2 changed files with 4 additions and 0 deletions

View File

@ -456,6 +456,7 @@ AC_CHECK_HEADERS([ \
sys/mman.h \
sys/label.h \
sys/ndir.h \
sys/param.h \
sys/poll.h \
sys/prctl.h \
sys/procctl.h \

View File

@ -19,6 +19,9 @@
#include <sys/types.h>
#include <sys/time.h>
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
#ifdef HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif