1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 19:10:37 -08:00

Fix build failure on macOS 10.7 (bug#46036)

* src/nsfns.m (ns_set_represented_filename): Define the NSNumber in a
more compatible manner.
This commit is contained in:
Alan Third 2021-01-30 10:53:12 +00:00
parent ca44ea18ef
commit 9c75434173

View file

@ -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];