removes trivial compilation warning
Daniel Jacobowitz
drow@mvista.com
Mon Mar 17 19:36:00 GMT 2003
On Mon, Mar 17, 2003 at 08:19:38PM +0100, Joerg Beyer wrote:
> This fixes a trivial warning:
>
> gdb/gdbserver/gdbreplay.c gives a warning, because atoi is
> not declared. The inlcude of stdlib.h fixes this:
>
> Joerg
>
> diff -c src_orig/gdb/gdbserver/gdbreplay.c src/gdb/gdbserver/gdbreplay.c
> *** src_orig/gdb/gdbserver/gdbreplay.c 2002-07-09 19:38:58.000000000 +0200
> --- src/gdb/gdbserver/gdbreplay.c 2003-03-17 19:53:38.000000000 +0100
> ***************
> *** 30,35 ****
> --- 30,36 ----
> #include <ctype.h>
> #include <fcntl.h>
> #include <errno.h>
> + #include <stdlib.h>
>
> #ifdef HAVE_STDLIB_H
> #include <stdlib.h>
Look down a line in your patch. Is HAVE_STDLIB_H not getting defined?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
More information about the Gdb
mailing list