[PATCH] D41017: Fix test/msan/iconv.cc on NetBSD
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 8 16:42:35 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT320228: Fix test/msan/iconv.cc on NetBSD (authored by kamil).
Changed prior to commit:
https://reviews.llvm.org/D41017?vs=126164&id=126242#toc
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D41017
Files:
test/msan/iconv.cc
Index: test/msan/iconv.cc
===================================================================
--- test/msan/iconv.cc
+++ test/msan/iconv.cc
@@ -15,8 +15,8 @@
char inbuf_[100];
strcpy(inbuf_, "sample text");
char outbuf_[100];
-#if defined(__FreeBSD__)
- // FreeBSD's iconv() expects the 2nd argument be of type 'const char**'.
+#if defined(__FreeBSD__) || defined(__NetBSD__)
+ // Some OSes expect the 2nd argument of iconv(3) to be of type const char **
const char *inbuf = inbuf_;
#else
char *inbuf = inbuf_;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41017.126242.patch
Type: text/x-patch
Size: 529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171209/f32adefa/attachment.bin>
More information about the llvm-commits
mailing list