From 67289b625ef9a57c2f08578dc9ac827a14a3883f Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Sat, 22 Jan 1994 02:06:58 +0000 Subject: [PATCH] * chardefs.h, tilde.c: Just declare strrchr rather than trying to include a system header. --- readline/ChangeLog | 5 +++++ readline/chardefs.h | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/readline/ChangeLog b/readline/ChangeLog index f6803b9..4b80796 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 241567e..f7df250 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 -- 2.7.4