patch 8.2.3067: building fails with Athena
Problem: Building fails with Athena. (Elimar Riesebieter)
Solution: Adjust #ifdefs and add the 'drop_file' feature.
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 2539515..d3b2cde 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -4578,6 +4578,13 @@
0
#endif
},
+ {"drop_file",
+#ifdef HAVE_DROP_FILE
+ 1
+#else
+ 0
+#endif
+ },
{"emacs_tags",
#ifdef FEAT_EMACS_TAGS
1
diff --git a/src/testdir/test_gui.vim b/src/testdir/test_gui.vim
index 5c18d5d..762e332 100644
--- a/src/testdir/test_gui.vim
+++ b/src/testdir/test_gui.vim
@@ -1160,12 +1160,16 @@
" Test for dropping files into a window in GUI
func DropFilesInCmdLine()
+ CheckFeature drop_file
+
call feedkeys(":\"", 'L')
call test_gui_drop_files(['a.c', 'b.c'], &lines, 1, 0)
call feedkeys("\<CR>", 'L')
endfunc
func Test_gui_drop_files()
+ CheckFeature drop_file
+
call assert_fails('call test_gui_drop_files(1, 1, 1, 0)', 'E474:')
call assert_fails('call test_gui_drop_files(["x"], "", 1, 0)', 'E474:')
call assert_fails('call test_gui_drop_files(["x"], 1, "", 0)', 'E474:')
diff --git a/src/testing.c b/src/testing.c
index b32eb1a..f01f73a 100644
--- a/src/testing.c
+++ b/src/testing.c
@@ -1260,7 +1260,7 @@
void
f_test_gui_drop_files(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
{
-# ifdef FEAT_GUI
+#if defined(HAVE_DROP_FILE)
int row;
int col;
int_u mods;
diff --git a/src/version.c b/src/version.c
index 9bb7c4f..c43fd3f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -756,6 +756,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 3067,
+/**/
3066,
/**/
3065,