# include <config.h>
#endif
-#include <string.h>
+#if defined _LIBC || defined HAVE_STRING_H
+# include <string.h>
+#endif
#include <sys/types.h>
typedef unsigned chartype;
+#undef strstr
+
char *
strstr (const char *phaystack, const char *pneedle)
{
}
while (*rhaystack == a);
- needle = rneedle; /* took the register-poor aproach */
+ needle = rneedle; /* took the register-poor approach */
if (a == '\0')
break;