gentoo-ebuilds/app-i18n/kakasi/files/kakasi-2.3.6-configure-clang16.patch
Sam James 555061fac3
app-i18n/kakasi: fix configure w/ clang 16
Closes: https://bugs.gentoo.org/874654
Signed-off-by: Sam James <sam@gentoo.org>
2023-04-16 06:26:03 +01:00

19 lines
723 B
Diff

https://src.fedoraproject.org/rpms/kakasi/raw/4756771349822d4ccd4d74a6ce70040ca57084cb/f/kakasi-configure-c99.patch
https://bugs.gentoo.org/874654
Avoid an implicit declaration of exit and build failures with future
compilers which do not support implicit function declarations by
default.
--- a/configure.in
+++ b/configure.in
@@ -85,7 +85,7 @@ AS_VAR_IF(utf8, "yes",[
LIBS="$LIBICONV $LIBS"
AC_DEFINE(KAKASI_SUPPORT_UTF8, 1, [KAKASI_SUPPORT_UTF8])
AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <iconv.h>],
- [if (iconv_open("EUC-JP", "UTF-8") == -1) exit(1);])],
+ [if (iconv_open("EUC-JP", "UTF-8") == -1) return 1;])],
[],
[AC_MSG_ERROR([can not use EUC-JP or UTF-8 encoding on iconv])])
])