From: Amos Jeffries Date: Sun, 24 Jul 2011 13:27:31 +0000 (-0600) Subject: Provide NULL when missing X-Git-Tag: SQUID_3_1_15~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5571b51a828ef5d64a32dbad227294747a7b018e;p=thirdparty%2Fsquid.git Provide NULL when missing --- diff --git a/compat/compat_shared.h b/compat/compat_shared.h index 556537b59d..1860a07f95 100644 --- a/compat/compat_shared.h +++ b/compat/compat_shared.h @@ -220,5 +220,9 @@ max(A const & lhs, A const & rhs) #define SA_RESETHAND SA_ONESHOT #endif +/* NULL is not always provided. */ +#ifndef NULL +#define NULL ((void *)0) +#endif #endif /* _SQUID_COMPAT_SHARED_H */