From: Jim Kingdon Date: Sat, 22 Jan 1994 02:06:58 +0000 (+0000) Subject: * chardefs.h, tilde.c: Just declare strrchr rather than trying to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67289b625ef9a57c2f08578dc9ac827a14a3883f;p=binutils-gdb.git * chardefs.h, tilde.c: Just declare strrchr rather than trying to include a system header. --- diff --git a/readline/ChangeLog b/readline/ChangeLog index f6803b98352..4b80796b0d0 100644 --- a/readline/ChangeLog +++ b/readline/ChangeLog @@ -1,3 +1,8 @@ +Fri Jan 21 17:31:26 1994 Jim Kingdon (kingdon@lisa.cygnus.com) + + * chardefs.h, tilde.c: Just declare strrchr rather than trying to + include a system header. + Fri Jan 21 14:40:43 1994 Fred Fish (fnf@cygnus.com) * Makefile.in (distclean, realclean): Expand local-distclean diff --git a/readline/chardefs.h b/readline/chardefs.h index 241567ea3fd..f7df2501e28 100644 --- a/readline/chardefs.h +++ b/readline/chardefs.h @@ -4,11 +4,19 @@ #include +#if 0 +/* Getting the correct definition of HAVE_STRING_H is harder than just + declaring them ourselves. CYGNUS LOCAL. */ #if defined (HAVE_STRING_H) # include #else # include #endif /* HAVE_STRING_H */ +#else /* not 0 */ +/* We don't worry about declaring functions where we don't use the return + value (e.g. strcpy) or which return int. */ +extern char *strrchr (); +#endif /* not 0 */ #ifndef savestring #if 0