[Lldb-commits] [PATCH] Add missing headers

Stephen Wilson wilsons at start.ca
Thu Apr 7 19:12:07 PDT 2011


Something changed in commit r129112 where a few standard headers vanished from
the include chain when building on Linux.  Fix up by including limits.h for
INT_MAX and PATH_MAX where needed, and stdio.h for printf().



diff --git a/include/lldb/Core/StreamTee.h b/include/lldb/Core/StreamTee.h
index 28951d1..d315551 100644
--- a/include/lldb/Core/StreamTee.h
+++ b/include/lldb/Core/StreamTee.h
@@ -10,6 +10,8 @@
 #ifndef liblldb_StreamTee_h_
 #define liblldb_StreamTee_h_
 
+#include <limits.h>
+
 #include "lldb/Core/Stream.h"
 #include "lldb/Host/Mutex.h"
 
diff --git a/include/lldb/Core/StringList.h b/include/lldb/Core/StringList.h
index f448a67..b080919 100644
--- a/include/lldb/Core/StringList.h
+++ b/include/lldb/Core/StringList.h
@@ -10,6 +10,7 @@
 #ifndef liblldb_StringList_h_
 #define liblldb_StringList_h_
 
+#include <stdint.h>
 
 #include "lldb/Core/STLUtils.h"
 #include "lldb/lldb-forward.h"
diff --git a/source/API/SBFileSpec.cpp b/source/API/SBFileSpec.cpp
index 89275cf..a3a503d 100644
--- a/source/API/SBFileSpec.cpp
+++ b/source/API/SBFileSpec.cpp
@@ -7,6 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include <limits.h>
+
 #include "lldb/API/SBFileSpec.h"
 #include "lldb/API/SBStream.h"
 #include "lldb/Host/FileSpec.h"
diff --git a/source/API/SBLineEntry.cpp b/source/API/SBLineEntry.cpp
index 5187d58..3567a38 100644
--- a/source/API/SBLineEntry.cpp
+++ b/source/API/SBLineEntry.cpp
@@ -7,6 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include <limits.h>
+
 #include "lldb/API/SBLineEntry.h"
 #include "lldb/API/SBStream.h"
 #include "lldb/Core/StreamString.h"
diff --git a/source/Core/DataBufferMemoryMap.cpp b/source/Core/DataBufferMemoryMap.cpp
index 83060d5..cf88f34 100644
--- a/source/Core/DataBufferMemoryMap.cpp
+++ b/source/Core/DataBufferMemoryMap.cpp
@@ -10,6 +10,7 @@
 
 #include <errno.h>
 #include <fcntl.h>
+#include <limits.h>
 #include <sys/stat.h>
 #include <sys/mman.h>
 
diff --git a/source/Core/PluginManager.cpp b/source/Core/PluginManager.cpp
index a853c50..ae89c72 100644
--- a/source/Core/PluginManager.cpp
+++ b/source/Core/PluginManager.cpp
@@ -9,6 +9,8 @@
 
 #include "lldb/Core/PluginManager.h"
 
+#include <limits.h>
+
 #include <string>
 #include <vector>
 
diff --git a/source/Host/common/File.cpp b/source/Host/common/File.cpp
index 5a97bc9..fefa343 100644
--- a/source/Host/common/File.cpp
+++ b/source/Host/common/File.cpp
@@ -11,6 +11,7 @@
 #include "lldb/Host/File.h"
 
 #include <fcntl.h>
+#include <limits.h>
 #include <stdarg.h>
 #include <sys/stat.h>
 
diff --git a/source/Host/common/Host.cpp b/source/Host/common/Host.cpp
index 987d0b2..5d98402 100644
--- a/source/Host/common/Host.cpp
+++ b/source/Host/common/Host.cpp
@@ -25,6 +25,7 @@
 #include <dlfcn.h>
 #include <errno.h>
 #include <grp.h>
+#include <limits.h>
 #include <netdb.h>
 #include <pwd.h>
 #include <sys/types.h>
diff --git a/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp b/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
index 13178af..8e3461d 100644
--- a/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
+++ b/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
@@ -10,6 +10,7 @@
 #include "DWARFDebugAranges.h"
 
 #include <assert.h>
+#include <stdio.h>
 
 #include <algorithm>
 



More information about the lldb-commits mailing list