From: Darren Tucker Date: Tue, 22 Feb 2022 01:27:07 +0000 (+1100) Subject: Include sys/param.h if present. X-Git-Tag: V_8_9_P1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4b325a3fc82d11e0f5d61f62e7fde29415f7afb;p=thirdparty%2Fopenssh-portable.git Include sys/param.h if present. Needed for howmany() on MUSL systems such as Alpine. --- diff --git a/configure.ac b/configure.ac index a22eb444e..eb2872c66 100644 --- a/configure.ac +++ b/configure.ac @@ -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 \ diff --git a/openbsd-compat/bsd-poll.c b/openbsd-compat/bsd-poll.c index f8b427fc7..781ee978a 100644 --- a/openbsd-compat/bsd-poll.c +++ b/openbsd-compat/bsd-poll.c @@ -19,6 +19,9 @@ #include #include +#ifdef HAVE_SYS_PARAM_H +# include +#endif #ifdef HAVE_SYS_SELECT_H # include #endif