Files
packages/utils/vim/patches/004-clang.patch
Liangbin Lian 1f5670bdff vim: fix host compile with clang 12.0.0
fix autoconf script using 'exit' without including 'stdlib.h'

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
2020-11-18 22:52:04 +08:00

25 lines
572 B
Diff

--- a/src/auto/configure
+++ b/src/auto/configure
@@ -13922,6 +13922,9 @@ else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
+#if STDC_HEADERS
+# include <stdlib.h>
+#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -4064,6 +4064,9 @@ AC_DEFINE_UNQUOTED(VIM_SIZEOF_LONG, [$ac
dnl Make sure that uint32_t is really 32 bits unsigned.
AC_MSG_CHECKING([uint32_t is 32 bits])
AC_TRY_RUN([
+#if STDC_HEADERS
+# include <stdlib.h>
+#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif