From 517699cac6c0f4985ed4c5f4992b6bf6ceccfc25 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Mon, 4 Sep 2000 15:26:16 +0000 Subject: [PATCH] (index, rindex): Prototype conditionally. --- lib-src/ChangeLog | 4 ++++ lib-src/movemail.c | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 11dc8cfeaa8..26449633c3e 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,7 @@ +2000-09-04 Dave Love + + * movemail.c (index, rindex): Prototype conditionally. + 2000-09-03 Andrew Innes * makefile.w32-in: Change to DOS line endings. diff --git a/lib-src/movemail.c b/lib-src/movemail.c index cfe817c1119..61d58688901 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c @@ -143,7 +143,12 @@ static char *mail_spool_name (); extern int errno; #endif char *strerror (); -extern char *rindex (); +#ifdef HAVE_INDEX +extern char *index __P ((const char *, int)); +#endif +#ifdef HAVE_RINDEX +extern char *rindex __P((const char *, int)); +#endif void fatal (); void error (); -- 2.39.2