[PATCH] openbsd-compat/bsd-getpagesize.c: include includes.h for config.h defines

Peter Korsgaard peter at korsgaard.com
Tue Oct 31 09:45:05 AEDT 2017

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

Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 openbsd-compat/bsd-getpagesize.c | 2 ++
 1 file changed, 2 insertions(+)

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"
 #include <unistd.h>

More information about the openssh-unix-dev mailing list