summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2006-11-18 05:04:42 +0000
committerSteve Peters <steve@fisharerojo.org>2006-11-18 05:04:42 +0000
commitb91fbb9359c40ba617276a21a86b8809f9df07f0 (patch)
treeac44598ef87c1cb3fc31ea195f696e0e13043a57 /perlio.c
parenta678b0e43642b70fc74cc90fbae9fc1913934001 (diff)
downloadperl-b91fbb9359c40ba617276a21a86b8809f9df07f0.tar.gz
Tweaks needed to get Perl compiling with g++ on OpenBSD.
p4raw-id: //depot/perl@29313
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perlio.c b/perlio.c
index 0b202de80b..2236c509ba 100644
--- a/perlio.c
+++ b/perlio.c
@@ -4627,7 +4627,7 @@ PerlIOMmap_map(pTHX_ PerlIO *f)
}
posn = (b->posn / PL_mmap_page_size) * PL_mmap_page_size;
len = st.st_size - posn;
- m->mptr = mmap(NULL, len, PROT_READ, MAP_SHARED, fd, posn);
+ m->mptr = (Mmap_t)mmap(NULL, len, PROT_READ, MAP_SHARED, fd, posn);
if (m->mptr && m->mptr != (Mmap_t) - 1) {
#if 0 && defined(HAS_MADVISE) && defined(MADV_SEQUENTIAL)
madvise(m->mptr, len, MADV_SEQUENTIAL);