mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-14 15:21:01 +08:00
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
This commit is contained in:
parent
4f870c0425
commit
5aa0f40f6a
@ -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.
|
||||
|
@ -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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user