diff options
author | Darren Tucker <dtucker@zip.com.au> | 2017-10-31 10:09:33 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2017-10-31 10:09:33 +1100 |
commit | f21455a084f9cc3942cf1bde64055a4916849fed (patch) | |
tree | bd5d03a30f2fe9270965ab6b9b7aecfcf3eb3fe2 /openbsd-compat | |
parent | f2ad63c0718b93ac1d1e85f53fee33b06eef86b5 (diff) |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <unistd.h> |