diff options
author | Steve Peters <steve@fisharerojo.org> | 2006-11-18 05:04:42 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2006-11-18 05:04:42 +0000 |
commit | b91fbb9359c40ba617276a21a86b8809f9df07f0 (patch) | |
tree | ac44598ef87c1cb3fc31ea195f696e0e13043a57 /perlio.c | |
parent | a678b0e43642b70fc74cc90fbae9fc1913934001 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |