]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Provide NULL when missing
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 23 Jul 2011 13:49:47 +0000 (01:49 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 23 Jul 2011 13:49:47 +0000 (01:49 +1200)
compat/compat_shared.h

index b92d3ace301141107f9735840c740c864f58a0ae..6317f54a3c57ea828fbfc5ec2617b2c0fd0d00b9 100644 (file)
@@ -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 */