aboutsummaryrefslogtreecommitdiff
path: root/libiberty/configure
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/configure')
-rwxr-xr-xlibiberty/configure5
1 files changed, 4 insertions, 1 deletions
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