changeset 31376:f5cd669613d2

(index, rindex): Prototype conditionally.
author Dave Love <fx@gnu.org>
date Mon, 04 Sep 2000 15:24:54 +0000
parents 35ac470e5e9c
children c19193908ff3
files lib-src/movemail.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/movemail.c	Mon Sep 04 14:00:50 2000 +0000
+++ b/lib-src/movemail.c	Mon Sep 04 15:24:54 2000 +0000
@@ -143,7 +143,12 @@
 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 ();