projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
GNU file utilities
[gnulib.git]
/
lib
/
dirname.c
diff --git
a/lib/dirname.c
b/lib/dirname.c
index
82deea7
..
5a92ce5
100644
(file)
--- a/
lib/dirname.c
+++ b/
lib/dirname.c
@@
-20,9
+20,11
@@
#else
char *malloc ();
#endif
-#if defined(
USG) || defined(STDC_HEADERS
)
+#if defined(
STDC_HEADERS) || defined(HAVE_STRING_H
)
#include <string.h>
+#ifndef rindex
#define rindex strrchr
+#endif
#else
#include <strings.h>
#endif