]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/openssh/0005-openbsd-compat-bsd-getpagesize.c-include-includes.h-.patch
ce600729345e04f008f2c5b64dcc2421035d3859
[coffee/buildroot.git] / package / openssh / 0005-openbsd-compat-bsd-getpagesize.c-include-includes.h-.patch
1 From 9a43657a3dcb868b4f36ade3aba5dcf0871fb412 Mon Sep 17 00:00:00 2001
2 From: Peter Korsgaard <peter@korsgaard.com>
3 Date: Mon, 30 Oct 2017 23:36:56 +0100
4 Subject: [PATCH] openbsd-compat/bsd-getpagesize.c: include includes.h for
5  config.h defines
6
7 The configure script checks for getpagesize() and sets HAVE_GETPAGESIZE in
8 config.h, but bsd-getpagesize.c forgot to include includes.h (which
9 indirectly includes config.h) so the checks always fails, causing linker
10 issues when linking statically on systems with getpagesize():
11
12 http://autobuild.buildroot.net/results/8cc/8cc30818a400c7a392a3de787cabc9cd8425495f/build-end.log
13
14 Fix it by including includes.h
15
16 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
17 ---
18  openbsd-compat/bsd-getpagesize.c | 2 ++
19  1 file changed, 2 insertions(+)
20
21 diff --git a/openbsd-compat/bsd-getpagesize.c b/openbsd-compat/bsd-getpagesize.c
22 index 9daddfbd..416a8d4c 100644
23 --- a/openbsd-compat/bsd-getpagesize.c
24 +++ b/openbsd-compat/bsd-getpagesize.c
25 @@ -1,5 +1,7 @@
26  /* Placed in the public domain */
27  
28 +#include "includes.h"
29 +
30  #ifndef HAVE_GETPAGESIZE
31  
32  #include <unistd.h>
33 -- 
34 2.11.0
35