summaryrefslogtreecommitdiff
path: root/test/msan/iconv.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/msan/iconv.cc')
-rw-r--r--test/msan/iconv.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/msan/iconv.cc b/test/msan/iconv.cc
index e5fbbf924..7beb6a018 100644
--- a/test/msan/iconv.cc
+++ b/test/msan/iconv.cc
@@ -15,8 +15,8 @@ int main(void) {
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_;