This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
PATCH : readline/shell/NULL
- To: "Philippe De Muyter" <phdm@macqel.be>
- Subject: PATCH : readline/shell/NULL
- From: Elena Zannoni <ezannoni@cygnus.com>
- Date: Fri, 13 Aug 1999 09:38:20 -0400 (EDT)
- Cc: chet@po.cwru.edu (Chet Ramey), gdb-patches@sourceware.cygnus.com (gdb-patches@sourceware.cygnus.com)
- References: <199908131123.NAA16600@mail.macqel.be>
Patch applied, thanks.
Elena
Philippe De Muyter writes:
> Symptom :
>
> gcc -c -DHAVE_CONFIG_H -I. -I/share/src/gnu/gdb-19990809/readline -I/usr/local/include -DRL_LIBRARY_VERSION='"4.0"' -g -O2 -W -Wall /share/src/gnu/gdb-19990809/readline/shell.c
> /share/src/gnu/gdb-19990809/readline/shell.c: In function `get_home_dir':
> /share/src/gnu/gdb-19990809/readline/shell.c:128: `NULL' undeclared (first use this function)
> /share/src/gnu/gdb-19990809/readline/shell.c:128: (Each undeclared identifier is reported only once
> /share/src/gnu/gdb-19990809/readline/shell.c:128: for each function it appears in.)
> /share/src/gnu/gdb-19990809/readline/shell.c:125: warning: `home_dir' may be used uninitialized in this function
> gnumake[1]: *** [shell.o] Error 1
>
> Possible fix :
>
> Thu Aug 12 00:11:02 1999 Philippe De Muyter <phdm@macqel.be>
>
> * shell.c (stdio.h): File included.
>
> --- ./readline/shell.c Fri Aug 13 13:13:40 1999
> +++ ./readline/shell.c Fri Aug 13 10:57:48 1999
> @@ -27,6 +27,7 @@
> #endif
>
> #include <sys/types.h>
> +#include <stdio.h>
>
> #if defined (HAVE_UNISTD_H)
> # include <unistd.h>