patch 8.2.2986: build failure without the profile feature

Problem:    Build failure without the profile feature.
Solution:   Add #ifdef.
diff --git a/src/version.c b/src/version.c
index ad399ce..52e4a46 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2986,
+/**/
     2985,
 /**/
     2984,
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 7c01906..1747f30 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -1871,10 +1871,12 @@
 
 	    switch (compile_type)
 	    {
+		case CT_PROFILE:
+#ifdef FEAT_PROFILE
+		    return dfunc->df_instr_prof == NULL;
+#endif
 		case CT_NONE:
 		    return dfunc->df_instr == NULL;
-		case CT_PROFILE:
-		    return dfunc->df_instr_prof == NULL;
 		case CT_DEBUG:
 		    return dfunc->df_instr_debug == NULL;
 	    }