From 1f5670bdffdd0c1a33e87529ed66263fc3026b28 Mon Sep 17 00:00:00 2001 From: Liangbin Lian Date: Wed, 18 Nov 2020 12:06:21 +0800 Subject: [PATCH] vim: fix host compile with clang 12.0.0 fix autoconf script using 'exit' without including 'stdlib.h' Signed-off-by: Liangbin Lian --- utils/vim/Makefile | 2 +- utils/vim/patches/004-clang.patch | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 utils/vim/patches/004-clang.patch diff --git a/utils/vim/Makefile b/utils/vim/Makefile index 0526f0c3d..5d9b21c73 100644 --- a/utils/vim/Makefile +++ b/utils/vim/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=vim PKG_VERSION:=8.1 -PKG_RELEASE:=5 +PKG_RELEASE:=6 VIMVER:=81 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 diff --git a/utils/vim/patches/004-clang.patch b/utils/vim/patches/004-clang.patch new file mode 100644 index 000000000..c5c5dc0e8 --- /dev/null +++ b/utils/vim/patches/004-clang.patch @@ -0,0 +1,24 @@ +--- 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 ++#endif + #ifdef HAVE_STDINT_H + # include + #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 ++#endif + #ifdef HAVE_STDINT_H + # include + #endif