summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-03-28 16:23:28 +0000
committerJim Meyering <jim@meyering.net>1993-03-28 16:23:28 +0000
commita34d7ff0acaf8137e35a7bede40aede8d949f401 (patch)
tree42b949cbb5e79070893e6abd2710b53fb9292cbb /lib
parentc1c67d32959bc542c68351567938b695a5cf0092 (diff)
downloadcoreutils-a34d7ff0acaf8137e35a7bede40aede8d949f401.tar.xz
[rindex]: Don't redefine.
Diffstat (limited to 'lib')
-rw-r--r--lib/dirname.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dirname.c b/lib/dirname.c
index 82deea7b4..7467d29e8 100644
--- a/lib/dirname.c
+++ b/lib/dirname.c
@@ -22,7 +22,9 @@ char *malloc ();
#endif
#if defined(USG) || defined(STDC_HEADERS)
#include <string.h>
+#ifndef rindex
#define rindex strrchr
+#endif
#else
#include <strings.h>
#endif