From: Alan Third Date: Sat, 30 Jan 2021 10:53:12 +0000 (+0000) Subject: Fix build failure on macOS 10.7 (bug#46036) X-Git-Tag: emacs-27.2-rc1~48 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9c75434173;p=emacs.git Fix build failure on macOS 10.7 (bug#46036) * src/nsfns.m (ns_set_represented_filename): Define the NSNumber in a more compatible manner. --- diff --git a/src/nsfns.m b/src/nsfns.m index 5a9ad18a12f..5f223669397 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -493,7 +493,7 @@ ns_set_represented_filename (struct frame *f) #if defined (NS_IMPL_COCOA) && defined (MAC_OS_X_VERSION_10_7) /* Work around for Mach port leaks on macOS 10.15 (bug#38618). */ NSURL *fileURL = [NSURL fileURLWithPath:fstr isDirectory:NO]; - NSNumber *isUbiquitousItem = @YES; + NSNumber *isUbiquitousItem = [NSNumber numberWithBool:YES]; [fileURL getResourceValue:(id *)&isUbiquitousItem forKey:NSURLIsUbiquitousItemKey error:nil];