From fce7f2d9866de03b1bd6218e5c33ef711ded5823 Mon Sep 17 00:00:00 2001 From: "K. Richard Pixley" Date: Thu, 18 Feb 1993 00:05:45 +0000 Subject: [PATCH] * remote.c (readchar): forward declare alarm which otherwise looks like an undeclared variable to gcc. --- gdb/ChangeLog | 3 +++ gdb/remote.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3b52c06d75a..5eacdd67d00 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/remote.c b/gdb/remote.c index 083d12cf631..a17b0052e45 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -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; -- 2.30.2