diff options
author | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2004-02-22 12:41:38 +0000 |
---|---|---|
committer | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2004-02-22 12:41:38 +0000 |
commit | 55ccff03394441007827a74bc0066781aa132bac (patch) | |
tree | e4ee9f89c7614e2066bb177e76d614deef4fbd23 | |
parent | 86adacd7423487b654e2a3ad5c20dd8649ec05a0 (diff) | |
download | libapr-55ccff03394441007827a74bc0066781aa132bac.tar.gz |
Backport from HEAD:
* configure.in: Fix comparison of mmap() return value.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@64916 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | configure.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 05da393f1..65c353417 100644 --- a/configure.in +++ b/configure.in @@ -634,7 +634,7 @@ if test "$ac_cv_func_mmap" = "yes" && return 1; } m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); - if (m < 0) { /* aka MAP_FAILED */ + if (m == (void *)-1) { /* aka MAP_FAILED */ return 2; } if (munmap(m, sizeof(void*)) < 0) { |