src/unix.cpp
changeset 9724 ffff7f3fcd47
parent 9470 08424e2e79e4
child 9727 3c06f03dadbe
equal deleted inserted replaced
9723:db2564531299 9724:ffff7f3fcd47
   142 {
   142 {
   143 	static char buf[1024];
   143 	static char buf[1024];
   144 	/* Work around buggy iconv implementation where inbuf is wrongly typed as
   144 	/* Work around buggy iconv implementation where inbuf is wrongly typed as
   145 	 * non-const. Correct implementation is at
   145 	 * non-const. Correct implementation is at
   146 	 * http://www.opengroup.org/onlinepubs/007908799/xsh/iconv.html */
   146 	 * http://www.opengroup.org/onlinepubs/007908799/xsh/iconv.html */
   147 #ifdef HAVE_BROKEN_ICONV
   147 #if defined(HAVE_BROKEN_ICONV) && !defined(__APPLE__)
   148 	char *inbuf = (char*)name;
   148 	char *inbuf = (char*)name;
   149 #else
   149 #else
   150 	const char *inbuf = name;
   150 	const char *inbuf = name;
   151 #endif
   151 #endif
   152 
   152