From f21455a084f9cc3942cf1bde64055a4916849fed Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Tue, 31 Oct 2017 10:09:33 +1100 Subject: Include includes.h for HAVE_GETPAGESIZE. 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(). Patch from Peter Korsgaard --- openbsd-compat/bsd-getpagesize.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbsd-compat/bsd-getpagesize.c') diff --git a/openbsd-compat/bsd-getpagesize.c b/openbsd-compat/bsd-getpagesize.c index 9daddfbd..416a8d4c 100644 --- a/openbsd-compat/bsd-getpagesize.c +++ b/openbsd-compat/bsd-getpagesize.c @@ -1,5 +1,7 @@ /* Placed in the public domain */ +#include "includes.h" + #ifndef HAVE_GETPAGESIZE #include -- cgit v1.2.3