diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-02-28 22:58:00 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-02-28 22:58:00 +0400 |
commit | 1be424bcb329eac4c997c790fac55d9df47a2ede (patch) | |
tree | cdcbb888209bee7dd9c02a7d678cce4262c35416 /util/mmap.hh | |
parent | bf54a5f38bd150fe295b8a30c13c4d07b0d0e977 (diff) |
KenLM 98814b2 including faster malloc-backed building and portability improvements
Diffstat (limited to 'util/mmap.hh')
-rw-r--r-- | util/mmap.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/mmap.hh b/util/mmap.hh index 921147c34..b218c4d19 100644 --- a/util/mmap.hh +++ b/util/mmap.hh @@ -100,7 +100,7 @@ void *MapOrThrow(std::size_t size, bool for_write, int flags, bool prefault, int void MapRead(LoadMethod method, int fd, uint64_t offset, std::size_t size, scoped_memory &out); -void *MapAnonymous(std::size_t size); +void MapAnonymous(std::size_t size, scoped_memory &to); // Open file name with mmap of size bytes, all of which are initially zero. void *MapZeroedWrite(int fd, std::size_t size); |