summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-11-10 20:29:24 +0000
committerjoerg <joerg@pkgsrc.org>2013-11-10 20:29:24 +0000
commitd546135c3f682b294883e4e9ef94902e3e98ae5a (patch)
treec45ff7649ff1af88b119474d2001b4be494e07a1 /x11
parent3a0d7e6266545e0124482e8693d7cf27214e0698 (diff)
downloadpkgsrc-d546135c3f682b294883e4e9ef94902e3e98ae5a.tar.gz
No custom operator new / delete.
Diffstat (limited to 'x11')
-rw-r--r--x11/rxvt-unicode/distinfo3
-rw-r--r--x11/rxvt-unicode/patches/patch-src_rxvtutil.h26
2 files changed, 28 insertions, 1 deletions
diff --git a/x11/rxvt-unicode/distinfo b/x11/rxvt-unicode/distinfo
index bbbd4da1684..d4af26eb8b6 100644
--- a/x11/rxvt-unicode/distinfo
+++ b/x11/rxvt-unicode/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.21 2013/07/25 08:28:36 wiz Exp $
+$NetBSD: distinfo,v 1.22 2013/11/10 20:29:24 joerg Exp $
SHA1 (rxvt-unicode-9.18.tar.bz2) = 5d12639c4b17019357ee62c08916b826e5d03259
RMD160 (rxvt-unicode-9.18.tar.bz2) = 0429b78d85bdedbfa7a33dd749fb5e72582bb75f
@@ -7,3 +7,4 @@ SHA1 (patch-Makefile.in) = 1c2890e2057d062f823f944fc2ecd2258f14b61e
SHA1 (patch-configure) = bd8a6fb21a02f7df6c29a932de10fdc2213ae8b0
SHA1 (patch-doc_Makefile.in) = 8465193e21878a18ae467dc50a336a65f1bd4de7
SHA1 (patch-src_perl_tabbed) = 7af00b0d704ca4801c86dedf80aadbbd1b87ad33
+SHA1 (patch-src_rxvtutil.h) = be8c1b26b24c3c36f8e0b24cf7fae51709cbaf34
diff --git a/x11/rxvt-unicode/patches/patch-src_rxvtutil.h b/x11/rxvt-unicode/patches/patch-src_rxvtutil.h
new file mode 100644
index 00000000000..30a51ed8b28
--- /dev/null
+++ b/x11/rxvt-unicode/patches/patch-src_rxvtutil.h
@@ -0,0 +1,26 @@
+$NetBSD: patch-src_rxvtutil.h,v 1.1 2013/11/10 20:29:24 joerg Exp $
+
+C++ requires replacements for new and delete to be global.
+
+--- src/rxvtutil.h.orig 2013-11-09 22:04:25.000000000 +0000
++++ src/rxvtutil.h
+@@ -89,19 +89,6 @@ struct rxvt_vec : simplevec<void *>
+ };
+ #endif
+
+-inline void *
+-operator new (size_t size)
+-{
+- // TODO: use rxvt_malloc
+- return malloc (size);
+-}
+-
+-inline void
+-operator delete (void *p)
+-{
+- free (p);
+-}
+-
+ template<typename T>
+ struct auto_ptr
+ {