From ffe23fb673c7f0713c215fcefdd029fa7bed6909 Mon Sep 17 00:00:00 2001
From: law <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Thu, 18 Sep 1997 05:54:18 +0000
Subject: [PATCH]         * util/install-info.c: Only provide an external decl
 for strrchr         if HAVE_STRCHR is not defined. Fixes aix build problem.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15535 138bc75d-0d04-0410-961f-82ee72b054a4
---
 texinfo/ChangeLog           | 5 +++++
 texinfo/util/install-info.c | 8 ++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/texinfo/ChangeLog b/texinfo/ChangeLog
index 3a67b6a81f24..323cee5fc431 100644
--- a/texinfo/ChangeLog
+++ b/texinfo/ChangeLog
@@ -1,3 +1,8 @@
+Wed Sep 17 23:56:11 1997  Jeffrey A Law  (law@cygnus.com)
+
+	* util/install-info.c: Only provide an external decl for strrchr
+	if HAVE_STRCHR is not defined.
+
 Mon Sep 15 22:53:01 1997  Jeffrey A Law  (law@cygnus.com)
 
 	* aclocal.m4: Add replacement for AC_PROG_INSTALL.
diff --git a/texinfo/util/install-info.c b/texinfo/util/install-info.c
index 6e5fc903e4e9..e0289a764507 100644
--- a/texinfo/util/install-info.c
+++ b/texinfo/util/install-info.c
@@ -1,7 +1,7 @@
 /* install-info -- create Info directory entry(ies) for an Info file.
    Copyright (C) 1996 Free Software Foundation, Inc.
 
-$Id: install-info.c,v 1.1.1.1 1997/08/21 22:58:12 jason Exp $
+$Id: install-info.c,v 1.3 1997/09/18 05:54:18 law Exp $
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -30,6 +30,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include <strings.h>
 #endif /* !HAVE_STRING_H */
 
+#if !defined (HAVE_STRCHR)
+char *strrchr ();
+#endif /* !HAVE_STRCHR */
+
+
 /* Get O_RDONLY.  */
 #ifdef HAVE_SYS_FCNTL_H
 #include <sys/fcntl.h>
@@ -622,7 +627,6 @@ For more information about these matters, see the files named COPYING.");
      .info suffix.  */
   {
     unsigned basename_len;
-    extern char *strrchr ();
     char *infile_basename = strrchr (infile, '/');
     if (infile_basename)
       infile_basename++;
-- 
GitLab