diff options
Diffstat (limited to 'www/squid3/patches/patch-src_base_TidyPointer.h')
-rw-r--r-- | www/squid3/patches/patch-src_base_TidyPointer.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/www/squid3/patches/patch-src_base_TidyPointer.h b/www/squid3/patches/patch-src_base_TidyPointer.h new file mode 100644 index 00000000000..6b58fc04f87 --- /dev/null +++ b/www/squid3/patches/patch-src_base_TidyPointer.h @@ -0,0 +1,17 @@ +$NetBSD: patch-src_base_TidyPointer.h,v 1.1 2013/02/10 18:16:53 adam Exp $ + +Define NULL if not defined. + +--- src/base/TidyPointer.h.orig 2011-07-08 09:42:57.000000000 +0000 ++++ src/base/TidyPointer.h +@@ -1,6 +1,10 @@ + #ifndef SQUID_BASE_TIDYPOINTER_H + #define SQUID_BASE_TIDYPOINTER_H + ++#ifndef NULL ++#define NULL ((void *)0) ++#endif ++ + /** + * A pointer that deletes the object it points to when the pointer's owner or + * context is gone. Similar to std::auto_ptr but without confusing assignment |