patch 8.0.0690: compiler warning on non-Unix system

Problem:    Compiler warning on non-Unix system.
Solution:   Add #ifdef. (John Marriott)
diff --git a/src/term.c b/src/term.c
index 0dbe6d5..989d6b7 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2524,7 +2524,9 @@
 {
     if (s != NULL && *s)
     {
+#ifdef HAVE_TGETENT
 	char_u *p;
+#endif
 
 #ifdef FEAT_GUI
 	/* Don't use tputs() when GUI is used, ncurses crashes. */
@@ -2549,7 +2551,7 @@
 		tputs((char *)p, 1, TPUTSFUNCAST out_char_nf);
 		*s = save_c;
 		out_flush();
-#ifdef ELAPSED_FUNC
+# ifdef ELAPSED_FUNC
 		/* Only sleep here if we can limit this happening in
 		 * vim_beep(). */
 		p = vim_strchr(s, '>');
@@ -2563,10 +2565,10 @@
 		    ++p;
 		    do_sleep(duration);
 		}
-#else
+# else
 		/* Rely on the terminal library to sleep. */
 		p = s;
-#endif
+# endif
 		break;
 	    }
 	}