From b6e56eca8a4eb74a86e9f2d99aa480c665458aa7 Mon Sep 17 00:00:00 2001 From: "Fernando J. Pereda" Date: Thu, 16 Feb 2006 09:38:01 +0100 Subject: Allow building Git in systems without iconv Systems using some uClibc versions do not properly support iconv stuff. This patch allows Git to be built on those systems by passing NO_ICONV=YesPlease to make. The only drawback is mailinfo won't do charset conversion in those systems. Signed-off-by: Fernando J. Pereda Signed-off-by: Junio C Hamano --- mailinfo.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mailinfo.c') diff --git a/mailinfo.c b/mailinfo.c index ff2d4d4038..3c56f8c108 100644 --- a/mailinfo.c +++ b/mailinfo.c @@ -7,7 +7,9 @@ #include #include #include +#ifndef NO_ICONV #include +#endif #include "git-compat-util.h" #include "cache.h" @@ -469,6 +471,7 @@ static int decode_b_segment(char *in, char *ot, char *ep) static void convert_to_utf8(char *line, char *charset) { +#ifndef NO_ICONV char *in, *out; size_t insize, outsize, nrc; char outbuf[4096]; /* cheat */ @@ -501,6 +504,7 @@ static void convert_to_utf8(char *line, char *charset) return; *out = 0; strcpy(line, outbuf); +#endif } static void decode_header_bq(char *it) -- cgit v1.3-5-g9baa