[Lldb-commits] PATCH: update includes needed for NetBSD
Krister Walfridsson
krister.walfridsson at gmail.com
Wed Jul 28 14:58:17 PDT 2010
The attached add some missing includes/updates some includes, needed to
compile on NetBSD.
/Krister
-------------- next part --------------
Index: source/Core/Error.cpp
===================================================================
--- source/Core/Error.cpp (revision 109645)
+++ source/Core/Error.cpp (working copy)
@@ -8,7 +8,7 @@
//===----------------------------------------------------------------------===//
// C Includes
-#include <sys/errno.h>
+#include <errno.h>
// C++ Includes
// Other libraries and framework includes
Index: include/lldb/Core/Error.h
===================================================================
--- include/lldb/Core/Error.h (revision 109645)
+++ include/lldb/Core/Error.h (working copy)
@@ -14,6 +14,7 @@
#ifdef __APPLE__
#include <mach/mach.h>
#endif
+#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <string>
Index: include/lldb/Core/Log.h
===================================================================
--- include/lldb/Core/Log.h (revision 109645)
+++ include/lldb/Core/Log.h (working copy)
@@ -14,6 +14,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <signal.h>
+#include <stdarg.h>
#include <stdio.h>
#include <unistd.h>
Index: tools/driver/IOChannel.h
===================================================================
--- tools/driver/IOChannel.h (revision 109645)
+++ tools/driver/IOChannel.h (working copy)
@@ -13,7 +13,11 @@
#include <string>
#include <queue>
+#if defined(__NetBSD__)
+#include <readline/readline.h>
+#else
#include <editline/readline.h>
+#endif
#include <histedit.h>
#include "Driver.h"
More information about the lldb-commits
mailing list