From b870aa6115a0d0fdaa7e964318274511099fcbb6 Mon Sep 17 00:00:00 2001
From: Stefan Monnier <monnier@iro.umontreal.ca>
Date: Sat, 29 Sep 2007 20:56:48 +0000
Subject: [PATCH] (term_clear_mouse_face, term_mouse_highlight)
 (tty_write_glyphs_with_face): Only define is HAVE_GPM.

---
 src/ChangeLog |  3 +++
 src/term.c    | 10 ++++++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index 0f2e34fe94e..70fbaad280e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
 2007-09-29  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* term.c (term_clear_mouse_face, term_mouse_highlight)
+	(tty_write_glyphs_with_face): Only define is HAVE_GPM.
+
 	* print.c (safe_debug_print): Use XHASH.
 
 	* lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
diff --git a/src/term.c b/src/term.c
index f00f7b2fb75..a6c69c71bef 100644
--- a/src/term.c
+++ b/src/term.c
@@ -182,15 +182,15 @@ static int system_uses_terminfo;
 char *tparam ();
 
 extern char *tgetstr ();
-
-static void term_clear_mouse_face ();
-static void term_mouse_highlight (struct frame *f, int x, int y);
 
 
 #ifdef HAVE_GPM
 #include <sys/fcntl.h>
 #include "buffer.h"
 
+static void term_clear_mouse_face ();
+static void term_mouse_highlight (struct frame *f, int x, int y);
+
 /* The device for which we have enabled gpm support (or NULL).  */
 struct tty_display_info *gpm_tty = NULL;
 
@@ -739,6 +739,8 @@ tty_write_glyphs (struct frame *f, struct glyph *string, int len)
   cmcheckmagic (tty);
 }
 
+#ifdef HAVE_GPM			/* Only used by GPM code.  */
+
 static void
 tty_write_glyphs_with_face (f, string, len, face_id)
      register struct frame *f;
@@ -797,7 +799,7 @@ tty_write_glyphs_with_face (f, string, len, face_id)
 
   cmcheckmagic (tty);
 }
-
+#endif
 
 /* An implementation of insert_glyphs for termcap frames. */
 
-- 
2.39.5