* remote.c (readchar): forward declare alarm which otherwise looks
authorK. Richard Pixley <rich@cygnus>
Thu, 18 Feb 1993 00:05:45 +0000 (00:05 +0000)
committerK. Richard Pixley <rich@cygnus>
Thu, 18 Feb 1993 00:05:45 +0000 (00:05 +0000)
  like an undeclared variable to gcc.

gdb/ChangeLog
gdb/remote.c

index 3b52c06d75ab29296232a7e58b4619aabfc0e0f4..5eacdd67d005542b95a1153791ddfe43df0b1485 100644 (file)
@@ -1,5 +1,8 @@
 Wed Feb 17 13:40:29 1993  K. Richard Pixley  (rich@cygnus.com)
 
+       * remote.c (readchar): forward declare alarm which otherwise looks
+         like an undeclared variable to gcc.
+
        * dbxread.c (process_one_symbol): cast enum value N_SO into int
          when comparing against an int.  Avoids superfluous warning from
          vax ultrix 4.2 cc.
index 083d12cf6315d4e3f76ebaf7999cae21a5f72879..a17b0052e45354da37b3712a4ea1a4c923135671 100644 (file)
@@ -737,6 +737,10 @@ readchar ()
 
   if (inbuf_index >= inbuf_count)
     {
+#ifndef HAVE_TERMIO
+      extern int alarm ();
+#endif
+
       /* Time to do another read... */
       inbuf_index = 0;
       inbuf_count = 0;