]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the --without-x build
authorEli Zaretskii <eliz@gnu.org>
Mon, 2 Oct 2017 18:35:51 +0000 (21:35 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 2 Oct 2017 18:35:51 +0000 (21:35 +0300)
* src/frame.c (Ficonify_frame) [HAVE_WINDOW_SYSTEM]: Use
frame_parent only in GUI builds to avoid compilation errors in
--without-x builds.  (Bug#28611)

src/frame.c

index 1aff3a007acfb4f7197c33292d9a11c589d7172c..ab801eec9c7907f265c1d4079fa7003102dafac2 100644 (file)
@@ -2542,6 +2542,7 @@ for how to proceed.  */)
   (Lisp_Object frame)
 {
   struct frame *f = decode_live_frame (frame);
+#ifdef HAVE_WINDOW_SYSTEM
   Lisp_Object parent = f->parent_frame;
 
   if (!NILP (parent))
@@ -2562,6 +2563,7 @@ for how to proceed.  */)
          return Qnil;
        }
     }
+#endif /* HAVE_WINDOW_SYSTEM */
 
   /* Don't allow minibuf_window to remain on an iconified frame.  */
   check_minibuf_window (frame, EQ (minibuf_window, selected_window));