]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
install-info.c: Only provide an external decl for strrchr if HAVE_STRCHR is not defined.
authorJeffrey A Law <law@cygnus.com>
Thu, 18 Sep 1997 05:54:18 +0000 (05:54 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 18 Sep 1997 05:54:18 +0000 (23:54 -0600)
        * util/install-info.c: Only provide an external decl for strrchr
        if HAVE_STRCHR is not defined.
Fixes aix build problem.

From-SVN: r15535

texinfo/ChangeLog
texinfo/util/install-info.c

index 3a67b6a81f24a7fe5ead4fa12532680af8dc9635..323cee5fc431def7c170c3a94b24d3358e0f2624 100644 (file)
@@ -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.
index 6e5fc903e4e93675ea5e91edcb39b03d95f20e37..e0289a764507cba3cf8fe5b27369fa731588b646 100644 (file)
@@ -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++;