Permalink
Browse files

Solaris has this as a caddr_t under this compile environment

  • Loading branch information...
1 parent b921bc7 commit b4eb6edcb4c512216390a99391c9ac5473dafc35 @postwait postwait committed Apr 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 util/env_posix.cc
View
@@ -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 {

0 comments on commit b4eb6ed

Please sign in to comment.