mirror of
https://github.com/ianlancetaylor/libbacktrace.git
synced 2026-04-05 17:09:06 +08:00
libbacktrace: declare getpagesize if necessary
Fixes https://gcc.gnu.org/PR95012.
This commit is contained in:
4
mmap.c
4
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. */
|
||||
|
||||
Reference in New Issue
Block a user