]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix build failure on macOS 10.7 (bug#46036)
authorAlan Third <alan@idiocy.org>
Sat, 30 Jan 2021 10:53:12 +0000 (10:53 +0000)
committerAlan Third <alan@idiocy.org>
Sat, 30 Jan 2021 22:14:22 +0000 (22:14 +0000)
* src/nsfns.m (ns_set_represented_filename): Define the NSNumber in a
more compatible manner.

src/nsfns.m

index 5a9ad18a12f601e520b5cac84777914180ad74fd..5f223669397a8345739a311255c3450a022688c0 100644 (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];