Loading compiler-rt/test/msan/iconv.cpp +10 −1 Original line number Diff line number Diff line Loading @@ -8,6 +8,15 @@ #include <stdio.h> #include <errno.h> #if defined(__NetBSD__) #include <sys/param.h> #if __NetBSD_Prereq__(9,99,17) #define NETBSD_POSIX_ICONV 1 #else #define NETBSD_POSIX_ICONV 0 #endif #endif int main(void) { iconv_t cd = iconv_open("ASCII", "ASCII"); assert(cd != (iconv_t)-1); Loading @@ -15,7 +24,7 @@ int main(void) { char inbuf_[100]; strcpy(inbuf_, "sample text"); char outbuf_[100]; #if defined(__NetBSD__) #if defined(__NetBSD__) && !NETBSD_POSIX_ICONV // Some OSes expect the 2nd argument of iconv(3) to be of type const char ** const char *inbuf = inbuf_; #else Loading Loading
compiler-rt/test/msan/iconv.cpp +10 −1 Original line number Diff line number Diff line Loading @@ -8,6 +8,15 @@ #include <stdio.h> #include <errno.h> #if defined(__NetBSD__) #include <sys/param.h> #if __NetBSD_Prereq__(9,99,17) #define NETBSD_POSIX_ICONV 1 #else #define NETBSD_POSIX_ICONV 0 #endif #endif int main(void) { iconv_t cd = iconv_open("ASCII", "ASCII"); assert(cd != (iconv_t)-1); Loading @@ -15,7 +24,7 @@ int main(void) { char inbuf_[100]; strcpy(inbuf_, "sample text"); char outbuf_[100]; #if defined(__NetBSD__) #if defined(__NetBSD__) && !NETBSD_POSIX_ICONV // Some OSes expect the 2nd argument of iconv(3) to be of type const char ** const char *inbuf = inbuf_; #else Loading