From: Lars Ingebrigtsen Date: Thu, 14 Jul 2022 18:07:37 +0000 (+0200) Subject: Fix --without-x build after previous image cache changes X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~1886^2~927 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=90f8c8400f88939208ae372287100caa46a5d31c;p=emacs.git Fix --without-x build after previous image cache changes * src/alloc.c (garbage_collect): Fix --without-all --without-x build. --- diff --git a/src/alloc.c b/src/alloc.c index 69fee0d6002..6e166d00d5b 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -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)) {