diff --git a/pkgs/by-name/ka/kakasi/avoid-an-implicit-declaration-of-exit.patch b/pkgs/by-name/ka/kakasi/avoid-an-implicit-declaration-of-exit.patch new file mode 100644 index 00000000000000..9a198a2f121176 --- /dev/null +++ b/pkgs/by-name/ka/kakasi/avoid-an-implicit-declaration-of-exit.patch @@ -0,0 +1,13 @@ +diff --git a/configure b/configure +index b4bd9ef..0e0df9d 100755 +--- a/configure ++++ b/configure +@@ -12557,7 +12557,7 @@ else + int + main () + { +-if (iconv_open("EUC-JP", "UTF-8") == -1) exit(1); ++if (iconv_open("EUC-JP", "UTF-8") == -1) return 1; + ; + return 0; + } diff --git a/pkgs/by-name/ka/kakasi/package.nix b/pkgs/by-name/ka/kakasi/package.nix index af749f436f29b9..39f4a723bc7e28 100644 --- a/pkgs/by-name/ka/kakasi/package.nix +++ b/pkgs/by-name/ka/kakasi/package.nix @@ -28,6 +28,8 @@ stdenv.mkDerivation rec { sha256 = "1qry3xqb83pjgxp3my8b1sy77z4f0893h73ldrvdaky70cdppr9f"; }; + patches = [ ./avoid-an-implicit-declaration-of-exit.patch ]; + postPatch = '' for a in tests/kakasi-* ; do substituteInPlace $a \