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
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():
12 http://autobuild.buildroot.net/results/8cc/8cc30818a400c7a392a3de787cabc9cd8425495f/build-end.log
14 Fix it by including includes.h
16 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
18 openbsd-compat/bsd-getpagesize.c | 2 ++
19 1 file changed, 2 insertions(+)
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
26 /* Placed in the public domain */
28 +#include "includes.h"
30 #ifndef HAVE_GETPAGESIZE