From 254480736f7db3667c7b84873efb49c2cb1d385f Mon Sep 17 00:00:00 2001 From: Evan Miller Date: Fri, 30 Dec 2022 10:42:23 +0000 Subject: patch 9.0.1110: build fails on Mac OS X 10.4/10.5 Problem: Build fails on Mac OS X 10.4/10.5 . Solution: Check if the dispatch/dispatch.h header exists. (Evan Miller, closes #11746) --- src/feature.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/feature.h') diff --git a/src/feature.h b/src/feature.h index 948539b1b3..3255f8abd3 100644 --- a/src/feature.h +++ b/src/feature.h @@ -272,7 +272,8 @@ */ #if defined(FEAT_NORMAL) \ && defined(FEAT_EVAL) \ - && ((defined(HAVE_GETTIMEOFDAY) && defined(HAVE_SYS_TIME_H)) \ + && ((defined(HAVE_GETTIMEOFDAY) && defined(HAVE_SYS_TIME_H) \ + && (!defined(MACOS_X) || defined(HAVE_DISPATCH_DISPATCH_H))) \ || defined(MSWIN)) # define FEAT_RELTIME #endif -- cgit v1.2.3