summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-09-16 12:28:34 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-16 12:28:34 +0100
commit3e8b7a6056986caf561f1b6168af7837919df9b9 (patch)
tree85f78c974b780e92cc4f6da0c6233464c8b84abb
parent48db5dafecacced4a9e42de3f92838b2d59beb4c (diff)
patch 9.0.0477: missing dependency may cause crashes on incomplete buildv9.0.0477
Problem: Missing dependency may cause crashes on incomplete build. Solution: Add dependency.
-rw-r--r--src/Makefile2
-rw-r--r--src/version.c2
-rw-r--r--src/vim9type.c5
3 files changed, 8 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 59c9b64ad7..668a87f35a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -4191,7 +4191,7 @@ objects/vim9type.o: vim9type.c vim.h protodef.h auto/config.h feature.h os_unix.
auto/osdef.h ascii.h keymap.h termdefs.h macros.h option.h beval.h \
proto/gui_beval.pro structs.h regexp.h gui.h libvterm/include/vterm.h \
libvterm/include/vterm_keycodes.h alloc.h ex_cmds.h spell.h proto.h \
- globals.h errors.h
+ globals.h errors.h vim9.h
objects/viminfo.o: viminfo.c vim.h protodef.h auto/config.h feature.h os_unix.h \
auto/osdef.h ascii.h keymap.h termdefs.h macros.h option.h beval.h \
proto/gui_beval.pro structs.h regexp.h gui.h libvterm/include/vterm.h \
diff --git a/src/version.c b/src/version.c
index 77db15595a..6155446123 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 477,
+/**/
476,
/**/
475,
diff --git a/src/vim9type.c b/src/vim9type.c
index b92a7afb15..4484abae90 100644
--- a/src/vim9type.c
+++ b/src/vim9type.c
@@ -20,6 +20,11 @@
# include <float.h>
#endif
+// When not generating protos this is included in proto.h
+#ifdef PROTO
+# include "vim9.h"
+#endif
+
/*
* Allocate memory for a type_T and add the pointer to type_gap, so that it can
* be easily freed later.