This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: removes trivial compilation warning
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Joerg Beyer <j dot beyer at web dot de>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 17 Mar 2003 14:36:03 -0500
- Subject: Re: removes trivial compilation warning
- References: <200303171919.h2HJJc310659@mailgate5.cinetic.de>
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