diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-20 20:49:46 -0500 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-23 20:18:47 -0500 |
commit | 12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch) | |
tree | 352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/clisp/patches.sh | |
parent | a2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff) |
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/clisp/patches.sh')
-rwxr-xr-x | homebrew/clisp/patches.sh | 17 |
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 |