aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIra Ruben <ira@apple.com>2001-12-31 23:23:49 +0000
committerDJ Delorie <dj@gcc.gnu.org>2001-12-31 18:23:49 -0500
commita4219437e2e21139d55c45600f6a836d1d315eae (patch)
treee84422d41a8850a181b3a65a3fd8bdae9864432d
parent3ada20eee166f36c91019acb2878bdcc5a24aeb1 (diff)
downloadgcc-a4219437e2e21139d55c45600f6a836d1d315eae.zip
gcc-a4219437e2e21139d55c45600f6a836d1d315eae.tar.gz
gcc-a4219437e2e21139d55c45600f6a836d1d315eae.tar.bz2
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
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/aclocal.m43
-rwxr-xr-xlibiberty/configure5
3 files changed, 12 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index f3a748d..6d8c6fd 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-31 Ira Ruben <ira@apple.com>
+
+ * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
+ * configure: Regenerated.
+
2001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
PR other/2719
diff --git a/libiberty/aclocal.m4 b/libiberty/aclocal.m4
index 7b1b677..103e246 100644
--- a/libiberty/aclocal.m4
+++ b/libiberty/aclocal.m4
@@ -48,6 +48,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
{
diff --git a/libiberty/configure b/libiberty/configure
index 9291f52..8ddd98d 100755
--- a/libiberty/configure
+++ b/libiberty/configure
@@ -3151,6 +3151,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
{
@@ -3167,7 +3170,7 @@ main ()
}
EOF
-if { (eval echo configure:3171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:3174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_func_strncmp_works=yes
else