]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
openssh: fix getpagesize() related static linking issue
authorPeter Korsgaard <peter@korsgaard.com>
Mon, 30 Oct 2017 22:45:55 +0000 (23:45 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 26 Nov 2017 09:11:21 +0000 (10:11 +0100)
commit3218c1bca24dcf65b8d4e59b8caa0ccaa8b15963
tree91b142618d3d215440a7aefac71a4f76956b3c5c
parent51936fb29193eaff5f959936111b1cfb28022e89
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>
(cherry picked from commit cc856401e8ac6a2c7a8767737b73dde933a5798a)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/openssh/0005-openbsd-compat-bsd-getpagesize.c-include-includes.h-.patch [new file with mode: 0644]