summaryrefslogtreecommitdiff
path: root/lib/makepath.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-03-29 05:09:09 +0000
committerJim Meyering <jim@meyering.net>1993-03-29 05:09:09 +0000
commit80f8bd8e8c5f610143a929dc5f9eeedb02db7aec (patch)
tree2938b5193deb43c8f7172f70e330872f81df26bd /lib/makepath.c
parenteb652720df63b7cb5a7b1eaf51dc05445a545c66 (diff)
downloadcoreutils-80f8bd8e8c5f610143a929dc5f9eeedb02db7aec.tar.xz
merge with 3.4.1
Diffstat (limited to 'lib/makepath.c')
-rw-r--r--lib/makepath.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/makepath.c b/lib/makepath.c
index 98b78a1e6..3ca5c9765 100644
--- a/lib/makepath.c
+++ b/lib/makepath.c
@@ -49,9 +49,11 @@ char *alloca ();
extern int errno;
#endif
-#if defined(USG) || defined(STDC_HEADERS)
+#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
#include <string.h>
+#ifndef index
#define index strchr
+#endif
#else
#include <strings.h>
#endif