From 565bd04328ff6afd8e176982f12ae7e376db8f34 Mon Sep 17 00:00:00 2001 From: Kevin B Kenny Date: Tue, 12 Apr 2005 18:32:40 +0000 Subject: added definition of NULL to strstr.c for Bug 1175161 --- ChangeLog | 6 ++++++ compat/strstr.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 632a466..721e107 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-11 Donal K. Fellows * tools/tclZIC.tcl: Rewrote to take advantage of more features of diff --git a/compat/strstr.c b/compat/strstr.c index d1f8516..151e3f3 100644 --- a/compat/strstr.c +++ b/compat/strstr.c @@ -9,10 +9,13 @@ * 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.4 2004/04/06 22:25:48 dgp Exp $ + * RCS: @(#) $Id: strstr.c,v 1.5 2005/04/12 18:32:41 kennykb Exp $ */ #include "tcl.h" +#ifndef NULL +#define NULL 0 +#endif /* *---------------------------------------------------------------------- -- cgit v0.12