-/* Copyright (C) 1994, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1999, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
This program is free software; you can redistribute it and/or modify
# include <config.h>
#endif
-#include <string.h>
-#include <sys/types.h>
+#if defined _LIBC || defined HAVE_STRING_H
+# include <string.h>
+#endif
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;