[Lldb-commits] [PATCH] D20224: Unbreak build on NetBSD-7.0
Kamil Rytarowski via lldb-commits
lldb-commits at lists.llvm.org
Thu May 12 18:07:15 PDT 2016
krytarowski created this revision.
krytarowski added reviewers: joerg, emaste, clayborg.
krytarowski added a subscriber: lldb-commits.
krytarowski set the repository for this revision to rL LLVM.
NetBSD 7.0 ships with too old libstdc++ and it lacks <codecvt>.
It's no longer true in the current version -- it has been tested with 7.99.28.
This arbitrary value is an temporary version just to retain building on 7.0 and head for fully functional NetBSD-8.0.
Repository:
rL LLVM
http://reviews.llvm.org/D20224
Files:
include/lldb/Host/Editline.h
Index: include/lldb/Host/Editline.h
===================================================================
--- include/lldb/Host/Editline.h
+++ include/lldb/Host/Editline.h
@@ -23,6 +23,15 @@
#ifndef liblldb_Editline_h_
#define liblldb_Editline_h_
+
+#if defined(__NetBSD__)
+#include <sys/param.h>
+#if __NetBSD_Prereq__(7,99,28)
+#define NETBSD_USE_WCHAR
+#endif
+#endif
+
+
#if defined(__cplusplus)
#include <sstream>
@@ -32,7 +41,7 @@
// components needed to handle wide characters ( <codecvt>, codecvt_utf8, libedit built with '--enable-widec' )
// are available on some platforms. The wchar_t versions of libedit functions will only be
// used in cases where this is true. This is a compile time dependecy, for now selected per target Platform
-#if defined (__APPLE__) || defined(__NetBSD__)
+#if defined (__APPLE__) || defined(NETBSD_USE_WCHAR)
#define LLDB_EDITLINE_USE_WCHAR 1
#include <codecvt>
#else
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20224.57122.patch
Type: text/x-patch
Size: 923 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160513/7e4a6389/attachment.bin>
More information about the lldb-commits
mailing list