# HG changeset patch # User Jim Meyering # Date 974449141 0 # Node ID 917f240a07a348401ce996f302c60f2601ba2126 # Parent c9edf250f3e7a0c0691bda5d258bd91cd16ff649 Update from GNU libc. diff -r c9edf250f3e7 -r 917f240a07a3 lib/strstr.c --- a/lib/strstr.c Thu Nov 16 12:20:35 2000 +0000 +++ b/lib/strstr.c Fri Nov 17 08:19:01 2000 +0000 @@ -28,11 +28,15 @@ # include #endif -#include +#if defined _LIBC || defined HAVE_STRING_H +# include +#endif #include typedef unsigned chartype; +#undef strstr + char * strstr (const char *phaystack, const char *pneedle) { @@ -105,7 +109,7 @@ } while (*rhaystack == a); - needle = rneedle; /* took the register-poor aproach */ + needle = rneedle; /* took the register-poor approach */ if (a == '\0') break;