summaryrefslogtreecommitdiff
path: root/src/nsfns.m
diff options
context:
space:
mode:
authorAlan Third <alan@idiocy.org>2021-01-30 10:53:12 +0000
committerAlan Third <alan@idiocy.org>2021-01-30 22:14:22 +0000
commit9c7543417306752683faacd1436f9748a6f4f616 (patch)
treefe62cc1419b5a93ce8c2c4490c2d2a2ed1e9f513 /src/nsfns.m
parentca44ea18ef2738b4f2e8c72058a12dc82ba13c65 (diff)
downloademacs-9c7543417306752683faacd1436f9748a6f4f616.tar.gz
Fix build failure on macOS 10.7 (bug#46036)
* src/nsfns.m (ns_set_represented_filename): Define the NSNumber in a more compatible manner.
Diffstat (limited to 'src/nsfns.m')
-rw-r--r--src/nsfns.m2
1 files changed, 1 insertions, 1 deletions
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];