libbacktrace: declare getpagesize if necessary

Fixes https://gcc.gnu.org/PR95012.
This commit is contained in:
Ian Lance Taylor
2020-05-11 10:54:46 -07:00
parent 7206f5bd06
commit 14465a9574
5 changed files with 23 additions and 1 deletions

View File

@@ -40,6 +40,10 @@ POSSIBILITY OF SUCH DAMAGE. */
#include "backtrace.h"
#include "internal.h"
#ifndef HAVE_DECL_GETPAGESIZE
extern int getpagesize (void);
#endif
#ifndef MAP_FAILED
#define MAP_FAILED ((void *)-1)
#endif