pkgsrc-ng/www/squid3/patches/patch-src_base_TidyPointer.h
2013-09-26 17:14:40 +02:00

18 lines
500 B
C++

$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