Skip to content

Commit

Permalink
Solaris has this as a caddr_t under this compile environment
Browse files Browse the repository at this point in the history
  • Loading branch information
postwait committed Apr 6, 2012
1 parent b921bc7 commit b4eb6ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/env_posix.cc
Expand Up @@ -101,7 +101,7 @@ class PosixMmapReadableFile: public RandomAccessFile {
// base[0,length-1] contains the mmapped contents of the file.
PosixMmapReadableFile(const std::string& fname, void* base, size_t length)
: filename_(fname), mmapped_region_(base), length_(length) { }
virtual ~PosixMmapReadableFile() { munmap(mmapped_region_, length_); }
virtual ~PosixMmapReadableFile() { munmap((char *)mmapped_region_, length_); }

virtual Status Read(uint64_t offset, size_t n, Slice* result,
char* scratch) const {
Expand Down

0 comments on commit b4eb6ed

Please sign in to comment.