]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.4488: build error with +eval but without +channel or +job v8.2.4488
authorBram Moolenaar <Bram@vim.org>
Tue, 1 Mar 2022 19:52:48 +0000 (19:52 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 1 Mar 2022 19:52:48 +0000 (19:52 +0000)
Problem:    Build error with +eval but without +channel or +job.
Solution:   Add #ifdef. (John Marriott)

src/typval.c
src/version.c

index 775466784d17ef1447806649f2bfb61d35f6d572..38b81e88486f3d4cf853663371a5c20e1b879355 100644 (file)
@@ -1394,10 +1394,14 @@ typval_compare_null(typval_T *tv1, typval_T *tv2)
        switch (tv->v_type)
        {
            case VAR_BLOB: return tv->vval.v_blob == NULL;
+#ifdef FEAT_JOB_CHANNEL
            case VAR_CHANNEL: return tv->vval.v_channel == NULL;
+#endif
            case VAR_DICT: return tv->vval.v_dict == NULL;
            case VAR_FUNC: return tv->vval.v_string == NULL;
+#ifdef FEAT_JOB_CHANNEL
            case VAR_JOB: return tv->vval.v_job == NULL;
+#endif
            case VAR_LIST: return tv->vval.v_list == NULL;
            case VAR_PARTIAL: return tv->vval.v_partial == NULL;
            case VAR_STRING: return tv->vval.v_string == NULL;
index 960e18cea8fd7c602f6e2fbc9e43285a64b16c6f..3918e7439de9c1f72f9060ce237d60f70f837037 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4488,
 /**/
     4487,
 /**/