From: Amos Jeffries Date: Sat, 23 Jul 2011 13:49:47 +0000 (+1200) Subject: Provide NULL when missing X-Git-Tag: take08~55^2~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=426fbba6825f21fd72afb1a0fc348ddf400f7062;p=thirdparty%2Fsquid.git Provide NULL when missing --- diff --git a/compat/compat_shared.h b/compat/compat_shared.h index b92d3ace30..6317f54a3c 100644 --- a/compat/compat_shared.h +++ b/compat/compat_shared.h @@ -257,4 +257,9 @@ const char * squid_strnstr(const char *s, const char *find, size_t slen); #define PRINTF_FORMAT_ARG3 #endif +/* NULL is not always provided. */ +#ifndef NULL +#define NULL ((void *)0) +#endif + #endif /* _SQUID_COMPAT_SHARED_H */