aboutsummaryrefslogtreecommitdiff
path: root/texinfo
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1997-09-18 05:54:18 +0000
committerJeff Law <law@gcc.gnu.org>1997-09-17 23:54:18 -0600
commit5aa0f40f6a1d37b4ef6919263c7b65182150294a (patch)
tree9e309caf71fee3684dad12e7c5c7252490408c03 /texinfo
parent4f870c0425a0c03ddc1535d2e8469a28ddc105cc (diff)
downloadgcc-5aa0f40f6a1d37b4ef6919263c7b65182150294a.zip
gcc-5aa0f40f6a1d37b4ef6919263c7b65182150294a.tar.gz
gcc-5aa0f40f6a1d37b4ef6919263c7b65182150294a.tar.bz2
install-info.c: Only provide an external decl for strrchr if HAVE_STRCHR is not defined.
* util/install-info.c: Only provide an external decl for strrchr if HAVE_STRCHR is not defined. Fixes aix build problem. From-SVN: r15535
Diffstat (limited to 'texinfo')
-rw-r--r--texinfo/ChangeLog5
-rw-r--r--texinfo/util/install-info.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/texinfo/ChangeLog b/texinfo/ChangeLog
index 3a67b6a..323cee5 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 6e5fc90..e0289a7 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++;