openssh: fix getpagesize() related static linking issue
authorPeter Korsgaard <peter@korsgaard.com>
Mon, 30 Oct 2017 22:45:55 +0000 (23:45 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 1 Nov 2017 09:46:29 +0000 (10:46 +0100)
commitcc856401e8ac6a2c7a8767737b73dde933a5798a
treedc32c5335d0d87c044ff7e6e7d2ee73000f3258b
parent84ec4f15ebbc3fb0691c7775766864c5a5039ff5
openssh: fix getpagesize() related static linking issue

Fixes:
http://autobuild.buildroot.net/results/8cc/8cc30818a400c7a392a3de787cabc9cd8425495f/

The configure script checks for getpagesize() and sets HAVE_GETPAGESIZE in
config.h, but bsd-getpagesize.c forgot to include includes.h (which
indirectly includes config.h) so the checks always fails, causing linker
issues when linking statically on systems with getpagesize().

Fix it by including includes.h.

Patch submitted upstream:
https://lists.mindrot.org/pipermail/openssh-unix-dev/2017-October/036413.html

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/openssh/0005-openbsd-compat-bsd-getpagesize.c-include-includes.h-.patch [new file with mode: 0644]