summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/bsd-poll.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2022-02-22 02:27:07 +0100
committerDarren Tucker <dtucker@dtucker.net>2022-02-22 02:27:07 +0100
commita4b325a3fc82d11e0f5d61f62e7fde29415f7afb (patch)
treefc09d331db1c64a8df62b1027e339f65f6c5b9d6 /openbsd-compat/bsd-poll.c
parentOnly include sys/poll.h if we don't have poll.h. (diff)
downloadopenssh-a4b325a3fc82d11e0f5d61f62e7fde29415f7afb.tar.xz
openssh-a4b325a3fc82d11e0f5d61f62e7fde29415f7afb.zip
Include sys/param.h if present.
Needed for howmany() on MUSL systems such as Alpine.
Diffstat (limited to '')
-rw-r--r--openbsd-compat/bsd-poll.c3
1 files changed, 3 insertions, 0 deletions
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 <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