projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GNU shell utilities
[gnulib.git]
/
lib
/
basename.c
diff --git
a/lib/basename.c
b/lib/basename.c
index
b8e7e1f
..
4a2a541
100644
(file)
--- a/
lib/basename.c
+++ b/
lib/basename.c
@@
-15,9
+15,11
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-#if defined(
USG) || defined(STDC_HEADERS
)
+#if defined(
STDC_HEADERS) || defined(HAVE_STRING_H
)
#include <string.h>
#include <string.h>
+#ifndef rindex
#define rindex strrchr
#define rindex strrchr
+#endif
#else
#include <strings.h>
#endif
#else
#include <strings.h>
#endif