Try to support obsolete Mac OS 10.5.

vmmap(1)'s -v option was new in 10.6.

Change-Id: I92465e5f0b9d74f9435cc5600881b4f4bce19989
diff --git a/src/mem_map.cc b/src/mem_map.cc
index 62096b1..f3f4be7 100644
--- a/src/mem_map.cc
+++ b/src/mem_map.cc
@@ -73,7 +73,8 @@
   // __LINKEDIT             00047000-0004a000 [   12K    12K     0K] r--/rwx SM=COW          out/host/darwin-x86/obj/lib/libnativehelper.dylib
   // ...
 
-  std::string command(StringPrintf("vmmap -v -interleaved %d", getpid()));
+  // TODO: the -v option replaces "-w -resident -dirty -purge -submap -allSplitLibs -noCoalesce" >= 10.6.
+  std::string command(StringPrintf("vmmap -w -resident -dirty -purge -submap -allSplitLibs -noCoalesce -interleaved %d", getpid()));
   FILE* fp = popen(command.c_str(), "r");
   if (fp == NULL) {
     PLOG(FATAL) << "popen failed";