aboutsummaryrefslogtreecommitdiff
path: root/graphics/nvidia-texture-tools
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2013-03-14 01:25:06 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2013-03-14 01:25:06 +0000
commitdee6375840cc30a300b9c6fcc9099839429db65a (patch)
tree65c8e2a8e13f4ccfdbcb634727c3e3f79ba0754d /graphics/nvidia-texture-tools
parent94c5bd1628adece7c1eeaabbdb58faba1ddefb66 (diff)
downloadports-dee6375840cc30a300b9c6fcc9099839429db65a.tar.gz
ports-dee6375840cc30a300b9c6fcc9099839429db65a.zip
- Fix build with clang
PR: 176899 Submitted by: Christopher Dukes <chris.dukes.aix@gmail.com>
Notes
Notes: svn path=/head/; revision=314125
Diffstat (limited to 'graphics/nvidia-texture-tools')
-rw-r--r--graphics/nvidia-texture-tools/files/patch-src-nvcore-Memory.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/nvidia-texture-tools/files/patch-src-nvcore-Memory.h b/graphics/nvidia-texture-tools/files/patch-src-nvcore-Memory.h
new file mode 100644
index 000000000000..93de8c198b09
--- /dev/null
+++ b/graphics/nvidia-texture-tools/files/patch-src-nvcore-Memory.h
@@ -0,0 +1,20 @@
+--- src/nvcore/Memory.h.orig 2010-05-14 21:59:28.000000000 +0400
++++ src/nvcore/Memory.h 2013-03-13 11:44:40.704932899 +0400
+@@ -28,7 +28,7 @@
+
+ // Override new/delete
+
+-inline void * operator new (size_t size) throw()
++inline void * operator new (size_t size) throw(std::bad_alloc)
+ {
+ return nv::mem::malloc(size);
+ }
+@@ -38,7 +38,7 @@
+ nv::mem::free(p);
+ }
+
+-inline void * operator new [] (size_t size) throw()
++inline void * operator new [] (size_t size) throw(std::bad_alloc)
+ {
+ return nv::mem::malloc(size);
+ }