diff lib/makepath.c @ 40:df153a752270

merge with 3.4.1
author Jim Meyering <jim@meyering.net>
date Mon, 29 Mar 1993 05:09:24 +0000
parents f3ddcf3cf2fa
children 63cf200b3839
line wrap: on
line diff
--- a/lib/makepath.c	Sun Mar 28 16:23:28 1993 +0000
+++ b/lib/makepath.c	Mon Mar 29 05:09:24 1993 +0000
@@ -49,9 +49,11 @@
 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