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>
This commit is contained in:
Darren Tucker 2017-10-31 10:09:33 +11:00
parent f2ad63c071
commit f21455a084
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,7 @@
/* Placed in the public domain */
#include "includes.h"
#ifndef HAVE_GETPAGESIZE
#include <unistd.h>