X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstrstr.c;h=42ffcfa8e3d65e187da9f0da461a94705bb437e9;hb=a76a349e949dfad5716eb3893052070b770e949f;hp=7709d8464abe664312f8f41856b9047e368070a3;hpb=89f2b4892655a929a506eff123c9126a88e2c8eb;p=gnulib.git diff --git a/lib/strstr.c b/lib/strstr.c index 7709d8464..42ffcfa8e 100644 --- a/lib/strstr.c +++ b/lib/strstr.c @@ -1,4 +1,4 @@ -/* 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 @@ -28,11 +28,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ # include #endif -#include -#include +#if defined _LIBC || defined HAVE_STRING_H +# include +#endif typedef unsigned chartype; +#undef strstr + char * strstr (const char *phaystack, const char *pneedle) { @@ -105,7 +108,7 @@ jin: a = *++haystack; } while (*rhaystack == a); - needle = rneedle; /* took the register-poor aproach */ + needle = rneedle; /* took the register-poor approach */ if (a == '\0') break;