summaryrefslogtreecommitdiff
path: root/data/weechat_/iconv.diff
diff options
context:
space:
mode:
Diffstat (limited to 'data/weechat_/iconv.diff')
-rw-r--r--data/weechat_/iconv.diff32
1 files changed, 32 insertions, 0 deletions
diff --git a/data/weechat_/iconv.diff b/data/weechat_/iconv.diff
new file mode 100644
index 000000000..b08894b16
--- /dev/null
+++ b/data/weechat_/iconv.diff
@@ -0,0 +1,32 @@
+diff -ru weechat-0.2.6/configure.in weechat-0.2.6+iPhone/configure.in
+--- weechat-0.2.6/configure.in 2007-09-05 14:14:00.000000000 +0000
++++ weechat-0.2.6+iPhone/configure.in 2008-07-31 02:49:39.000000000 +0000
+@@ -210,15 +210,7 @@
+ LIBS="$LIBS $ICONV_LFLAGS"
+ fi
+ AC_MSG_CHECKING(for iconv usability in programs)
+- AC_TRY_RUN([
+- #include <iconv.h>
+- int main(int argc, char **argv) {
+- iconv_t conv = iconv_open("ISO8859-1", "UTF-8");
+- if (conv != (iconv_t) -1) {
+- return 0;
+- }
+- return 1;
+- }],iconv_found="yes")
++ iconv_found="yes"
+ if test "x$iconv_found" = "xno" ; then
+ AC_MSG_RESULT(no)
+ else
+diff -ru weechat-0.2.6/src/common/util.h weechat-0.2.6+iPhone/src/common/util.h
+--- weechat-0.2.6/src/common/util.h 2007-07-11 11:21:02.000000000 +0000
++++ weechat-0.2.6+iPhone/src/common/util.h 2008-07-31 03:29:37.000000000 +0000
+@@ -28,7 +28,7 @@
+ extern int ascii_strcasecmp (char *, char *);
+ extern int ascii_strncasecmp (char *, char *, int);
+ extern char *ascii_strcasestr (char *, char *);
+-extern char *weechat_iconv (char *, char *, char *);
++extern char *weechat_iconv (int, char *, char *, char *);
+ extern char *weechat_iconv_to_internal (char *, char *);
+ extern char *weechat_iconv_from_internal (char *, char *);
+ extern void weechat_iconv_fprintf (FILE *, char *, ...);