summaryrefslogtreecommitdiffstats
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2017-10-31 00:09:33 +0100
committerDarren Tucker <dtucker@zip.com.au>2017-10-31 00:09:33 +0100
commitf21455a084f9cc3942cf1bde64055a4916849fed (patch)
treebd5d03a30f2fe9270965ab6b9b7aecfcf3eb3fe2 /openbsd-compat
parentupstream commit (diff)
downloadopenssh-f21455a084f9cc3942cf1bde64055a4916849fed.tar.xz
openssh-f21455a084f9cc3942cf1bde64055a4916849fed.zip
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 <peter at korsgaard.com>
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/bsd-getpagesize.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-getpagesize.c b/openbsd-compat/bsd-getpagesize.c
index 9daddfbd3..416a8d4cb 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 <unistd.h>