From b4eb6edcb4c512216390a99391c9ac5473dafc35 Mon Sep 17 00:00:00 2001 From: Theo Schlossnagle Date: Fri, 6 Apr 2012 13:36:20 -0400 Subject: [PATCH] Solaris has this as a caddr_t under this compile environment --- util/env_posix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/env_posix.cc b/util/env_posix.cc index cb1f6fc0..56b773e2 100644 --- a/util/env_posix.cc +++ b/util/env_posix.cc @@ -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 {