]> granicus.if.org Git - vim/commitdiff
patch 9.0.0237: Mac: cannot build if dispatch.h is not available v9.0.0237
authorEvan Miller <emmiller@gmail.com>
Sun, 21 Aug 2022 16:24:00 +0000 (17:24 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 21 Aug 2022 16:24:00 +0000 (17:24 +0100)
Problem:    Mac: cannot build if dispatch.h is not available.
Solution:   Add #ifdef. (Evan Miller, closes #10954)

src/os_macosx.m
src/version.c

index acc5b0794d777c6e931d081a721c5d205645fcd8..f666b71644c0473504e6f59a5d60bb794988711c 100644 (file)
@@ -28,7 +28,9 @@
 #include <sys/errno.h>
 #include <stdlib.h>
 
+#ifdef FEAT_RELTIME
 #include <dispatch/dispatch.h>
+#endif
 
 #include "vim.h"
 #import <AppKit/AppKit.h>
index c12d3c90605c054255f6a3b614926107ecfbeed5..3788596440f7f9d538009fc35671ca1cb1c13ac9 100644 (file)
@@ -731,6 +731,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    237,
 /**/
     236,
 /**/