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 | |
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>
-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 9daddfbd3..416a8d4cb 100644 --- a/openbsd-compat/bsd-getpagesize.c +++ b/openbsd-compat/bsd-getpagesize.c | |||
@@ -1,5 +1,7 @@ | |||
1 | /* Placed in the public domain */ | 1 | /* Placed in the public domain */ |
2 | 2 | ||
3 | #include "includes.h" | ||
4 | |||
3 | #ifndef HAVE_GETPAGESIZE | 5 | #ifndef HAVE_GETPAGESIZE |
4 | 6 | ||
5 | #include <unistd.h> | 7 | #include <unistd.h> |