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_;