[Lldb-commits] [lldb] r172876 - /lldb/trunk/examples/darwin/heap_find/heap/heap_find.cpp

Greg Clayton gclayton at apple.com
Fri Jan 18 16:35:24 PST 2013


Author: gclayton
Date: Fri Jan 18 18:35:24 2013
New Revision: 172876

URL: http://llvm.org/viewvc/llvm-project?rev=172876&view=rev
Log:
<rdar://problem/13011717>

Fixed a compilation error that occurs when "lldb.macosx.heap" is imported and "ptr_refs" is used.


Modified:
    lldb/trunk/examples/darwin/heap_find/heap/heap_find.cpp

Modified: lldb/trunk/examples/darwin/heap_find/heap/heap_find.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/darwin/heap_find/heap/heap_find.cpp?rev=172876&r1=172875&r2=172876&view=diff
==============================================================================
--- lldb/trunk/examples/darwin/heap_find/heap/heap_find.cpp (original)
+++ lldb/trunk/examples/darwin/heap_find/heap/heap_find.cpp Fri Jan 18 18:35:24 2013
@@ -63,7 +63,7 @@
 //
 // This is a clue that the 0x104008000 is a "lldb_private::Process *".
 //===----------------------------------------------------------------------===//
-
+// C includes
 #include <assert.h>
 #include <ctype.h>
 #include <dlfcn.h>
@@ -73,6 +73,9 @@
 #include <objc/objc-runtime.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <unistd.h>
+
+// C++ includes
 #include <vector>
 
 //----------------------------------------------------------------------





More information about the lldb-commits mailing list