From 714970f5967f2153bb95e35823dbd917e0e5b60b Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 22 May 2022 11:18:32 +0800 Subject: [PATCH] Fix GNUstep build * src/nsfns.m (ns_implicitly_set_icon_type): Don't use UTType if GNUstep. --- src/nsfns.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nsfns.m b/src/nsfns.m index a2f9c26b550..818ba6f40f1 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -847,6 +847,7 @@ ns_implicitly_set_icon_type (struct frame *f) if (image == nil) { +#ifndef NS_IMPL_GNUSTEP #if MAC_OS_X_VERSION_MAX_ALLOWED >= 120000 #if MAC_OS_X_VERSION_MIN_REQUIRED < 120000 if ([workspace respondsToSelector: @selector (iconForContentType:)]) @@ -857,6 +858,7 @@ ns_implicitly_set_icon_type (struct frame *f) else #endif #endif +#endif #if MAC_OS_X_VERSION_MIN_REQUIRED < 120000 image = [[workspace iconForFileType: @"text"] retain]; #endif -- 2.39.2