From a4219437e2e21139d55c45600f6a836d1d315eae Mon Sep 17 00:00:00 2001 From: Ira Ruben Date: Mon, 31 Dec 2001 23:23:49 +0000 Subject: aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try. * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try. * configure: Regenerated. From-SVN: r48436 --- libiberty/aclocal.m4 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libiberty/aclocal.m4') diff --git a/libiberty/aclocal.m4 b/libiberty/aclocal.m4 index 7b1b677645e..103e246de7e 100644 --- a/libiberty/aclocal.m4 +++ b/libiberty/aclocal.m4 @@ -47,6 +47,9 @@ main () p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, dev_zero, 0); + if (p == (char *)-1) + p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE, + MAP_ANON|MAP_PRIVATE, -1, 0); if (p == (char *)-1) exit (2); else -- cgit v1.2.1