diff options
| author | Alan Third | 2021-01-30 10:53:12 +0000 |
|---|---|---|
| committer | Alan Third | 2021-01-30 22:14:22 +0000 |
| commit | 9c7543417306752683faacd1436f9748a6f4f616 (patch) | |
| tree | fe62cc1419b5a93ce8c2c4490c2d2a2ed1e9f513 /src | |
| parent | ca44ea18ef2738b4f2e8c72058a12dc82ba13c65 (diff) | |
| download | emacs-9c7543417306752683faacd1436f9748a6f4f616.tar.gz emacs-9c7543417306752683faacd1436f9748a6f4f616.zip | |
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')
| -rw-r--r-- | src/nsfns.m | 2 |
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) | |||
| 493 | #if defined (NS_IMPL_COCOA) && defined (MAC_OS_X_VERSION_10_7) | 493 | #if defined (NS_IMPL_COCOA) && defined (MAC_OS_X_VERSION_10_7) |
| 494 | /* Work around for Mach port leaks on macOS 10.15 (bug#38618). */ | 494 | /* Work around for Mach port leaks on macOS 10.15 (bug#38618). */ |
| 495 | NSURL *fileURL = [NSURL fileURLWithPath:fstr isDirectory:NO]; | 495 | NSURL *fileURL = [NSURL fileURLWithPath:fstr isDirectory:NO]; |
| 496 | NSNumber *isUbiquitousItem = @YES; | 496 | NSNumber *isUbiquitousItem = [NSNumber numberWithBool:YES]; |
| 497 | [fileURL getResourceValue:(id *)&isUbiquitousItem | 497 | [fileURL getResourceValue:(id *)&isUbiquitousItem |
| 498 | forKey:NSURLIsUbiquitousItemKey | 498 | forKey:NSURLIsUbiquitousItemKey |
| 499 | error:nil]; | 499 | error:nil]; |