diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-09-18 05:54:18 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-09-18 05:54:18 +0000 |
commit | ffe23fb673c7f0713c215fcefdd029fa7bed6909 (patch) | |
tree | 9e309caf71fee3684dad12e7c5c7252490408c03 /texinfo | |
parent | 72dd70cc89e5394d99549a3257a03ac3444345cd (diff) | |
download | gcc-ffe23fb673c7f0713c215fcefdd029fa7bed6909.tar.gz |
* 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
Diffstat (limited to 'texinfo')
-rw-r--r-- | texinfo/ChangeLog | 5 | ||||
-rw-r--r-- | texinfo/util/install-info.c | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/texinfo/ChangeLog b/texinfo/ChangeLog index 3a67b6a81f2..323cee5fc43 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 6e5fc903e4e..e0289a76450 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++; |