diff options
author | Yann Ylavic <ylavic@apache.org> | 2021-03-11 17:26:56 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2021-03-11 17:26:56 +0000 |
commit | 6012bb8cebaeec67435556333af6264ccfc9c42f (patch) | |
tree | fa3db7995116bfdc9787bd905d000417307424fd /mmap/unix | |
parent | 7261729cc2d7e74a4c263a120199bcac57fa1f1e (diff) | |
download | apr-6012bb8cebaeec67435556333af6264ccfc9c42f.tar.gz |
Follow up to r1887060: fix compilation on BEOS.
poffset is undefined there, by inspection (no BEOS at hand..).
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1887502 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'mmap/unix')
-rw-r--r-- | mmap/unix/mmap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mmap/unix/mmap.c b/mmap/unix/mmap.c index cc0c838dc..48b881332 100644 --- a/mmap/unix/mmap.c +++ b/mmap/unix/mmap.c @@ -144,7 +144,6 @@ APR_DECLARE(apr_status_t) apr_mmap_create(apr_mmap_t **new, assert(psize > 0 && (psize & (psize - 1)) == 0); } poffset = offset & (apr_off_t)(psize - 1); - (*new)->poffset = poffset; #endif mm = mmap(NULL, size + poffset, @@ -156,11 +155,10 @@ APR_DECLARE(apr_status_t) apr_mmap_create(apr_mmap_t **new, *new = NULL; return errno; } - - mm = (char *)mm + poffset; #endif - (*new)->mm = mm; + (*new)->mm = (char *)mm + poffset; + (*new)->poffset = poffset; (*new)->size = size; (*new)->cntxt = cont; APR_RING_ELEM_INIT(*new, link); |