This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
PATCH : readline/shell/NULL
- To: chet@po.cwru.edu (Chet Ramey)
- Subject: PATCH : readline/shell/NULL
- From: "Philippe De Muyter" <phdm@macqel.be>
- Date: Fri, 13 Aug 1999 13:23:49 +0200 (CEST)
- Cc: gdb-patches@sourceware.cygnus.com (gdb-patches@sourceware.cygnus.com)
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>