summaryrefslogtreecommitdiff
path: root/homebrew/clisp/patches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/clisp/patches.sh')
-rwxr-xr-xhomebrew/clisp/patches.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/homebrew/clisp/patches.sh b/homebrew/clisp/patches.sh
new file mode 100755
index 000000000..c75819a52
--- /dev/null
+++ b/homebrew/clisp/patches.sh
@@ -0,0 +1,17 @@
+wget https://raw.githubusercontent.com/Homebrew/formula-patches/e2cc7c1/clisp/patch-src_lispbibl_d.diff
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/src/stream.d b/src/stream.d
+index 5345ed6..cf14e29 100644
+--- a/src/stream.d
++++ b/src/stream.d
+@@ -3994,7 +3994,7 @@ global object iconv_range (object encoding, uintL start, uintL end, uintL maxint
+ nonreturning_function(extern, error_unencodable, (object encoding, chart ch));
+
+ /* Avoid annoying warning caused by a wrongly standardized iconv() prototype. */
+-#ifdef GNU_LIBICONV
++#if defined(GNU_LIBICONV) && !defined(__APPLE_CC__)
+ #undef iconv
+ #define iconv(cd,inbuf,inbytesleft,outbuf,outbytesleft) \
+ libiconv(cd,(ICONV_CONST char **)(inbuf),inbytesleft,outbuf,outbytesleft)
+EOF