From f1157acccf54ea62a06c14c775142b095cfb2276 Mon Sep 17 00:00:00 2001 From: Kevin B Kenny Date: Tue, 12 Apr 2005 18:28:51 +0000 Subject: added definition of NULL to strstr.c for Bug 1175161 --- ChangeLog | 6 ++++++ compat/strstr.c | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 55f45bc..5a78308 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-04-12 Kevin B. Kenny + + * compat/strstr.c: Added default definition of NULL to + accommodate building on systems with badly broken headers. + [Bug #1175161] + 2005-04-09 Daniel Steffen * macosx/README: updated requirements for OS & developer tool diff --git a/compat/strstr.c b/compat/strstr.c index c83c209..d6f5cab 100644 --- a/compat/strstr.c +++ b/compat/strstr.c @@ -9,9 +9,14 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: strstr.c,v 1.3 2002/01/26 01:10:08 dgp Exp $ + * RCS: @(#) $Id: strstr.c,v 1.3.2.1 2005/04/12 18:28:56 kennykb Exp $ */ +#include +#ifndef NULL +#define NULL 0 +#endif + /* *---------------------------------------------------------------------- * -- cgit v0.12