]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix --without-x build after previous image cache changes
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 14 Jul 2022 18:07:37 +0000 (20:07 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 14 Jul 2022 18:07:37 +0000 (20:07 +0200)
* src/alloc.c (garbage_collect): Fix --without-all --without-x build.

src/alloc.c

index 69fee0d6002a8ace4d0f5bd697ce1ccfa2465467..6e166d00d5b1a857e4ad6785360c351a3fa72808 100644 (file)
@@ -6266,8 +6266,10 @@ garbage_collect (void)
   /* GC is complete: now we can run our finalizer callbacks.  */
   run_finalizers (&doomed_finalizers);
 
+#ifdef HAVE_WINDOW_SYSTEM
   /* Eject unused image cache entries.  */
   image_prune_animation_caches (false);
+#endif
 
   if (!NILP (Vpost_gc_hook))
     {