diff --git a/configure.ac b/configure.ac index 9907ab86e83..5be2588600d 100644 --- a/configure.ac +++ b/configure.ac @@ -2886,6 +2886,11 @@ Mac OS X 12.x or later. [Define to use native OS APIs for images.]) NATIVE_IMAGE_API="yes (ns)" fi + + if test "${NS_IMPL_GNUSTEP}" = yes; then + AC_CHECK_DECLS([NSImageNameCaution], [], [], + [[#import ]]) + fi fi AC_SUBST([LIBS_GNUSTEP]) diff --git a/src/nsterm.m b/src/nsterm.m index fe5bc35086d..f96096242d2 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -1221,7 +1221,7 @@ - (id)init { nestCount = 0; isAttached = false; -#ifdef NS_IMPL_GNUSTEP +#if NS_IMPL_GNUSTEP && !HAVE_DECL_NSIMAGENAMECAUTION // GNUstep doesn't provide named images. This was reported in // 2011, see https://savannah.gnu.org/bugs/?33396 //