diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-05-11 10:51:21 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-05-11 10:51:59 -0700 |
commit | 47f4703c33c4936fd423c2a1180b2de144115d3d (patch) | |
tree | acf2ecd80239085761d7f60772a6605fd1c90b77 /libbacktrace/mmap.c | |
parent | ed07d68141f88ba05189b748ea8935baca9b16b1 (diff) | |
download | gcc-47f4703c33c4936fd423c2a1180b2de144115d3d.zip gcc-47f4703c33c4936fd423c2a1180b2de144115d3d.tar.gz gcc-47f4703c33c4936fd423c2a1180b2de144115d3d.tar.bz2 |
libbacktrace: declare getpagesize if necessary
libbacktrace/
PR libbacktrace/95012
* configure.ac: Check for getpagesize declaration.
* mmap.c: Declare getpagesize if necessary.
* mmapio.c: Likewise.
Diffstat (limited to 'libbacktrace/mmap.c')
-rw-r--r-- | libbacktrace/mmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libbacktrace/mmap.c b/libbacktrace/mmap.c index dd7d519..6c8bd5d 100644 --- a/libbacktrace/mmap.c +++ b/libbacktrace/mmap.c @@ -42,6 +42,10 @@ POSSIBILITY OF SUCH DAMAGE. */ #include "backtrace.h" #include "internal.h" +#ifndef HAVE_DECL_GETPAGESIZE +extern int getpagesize (void); +#endif + /* Memory allocation on systems that provide anonymous mmap. This permits the backtrace functions to be invoked from a signal handler, assuming that mmap is async-signal safe. */ |