summaryrefslogtreecommitdiff
path: root/sysutils/mtools/patches/patch-af
blob: 4e308fa780d2c02eabcc2edfec9a0afa6e245118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-af,v 1.4 2010/05/03 10:17:05 is Exp $

--- charsetConv.c.orig	2008-11-18 21:33:11.000000000 +0000
+++ charsetConv.c
@@ -265,7 +265,7 @@ static void initialize_to_native(void)
  */
 int wchar_to_native(const wchar_t *wchar, char *native, size_t len)
 {
-#ifdef HAVE_ICONV_H
+#if defined(HAVE_ICONV_H) && defined(__linux__)
 	int mangled;
 	int r;
 	initialize_to_native();