From a72306e9e60d34ca64e24afddca574f98762e796 Mon Sep 17 00:00:00 2001 From: William Grzybowski Date: Fri, 6 Sep 2013 15:39:44 +0000 Subject: cad/freehdl: fix build with clang - Fix build with clang PR: ports/181830 Obtained from: NetBSD --- cad/freehdl/files/patch-freehdl_kernel-db.hh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cad/freehdl/files/patch-freehdl_kernel-db.hh (limited to 'cad/freehdl/files/patch-freehdl_kernel-db.hh') diff --git a/cad/freehdl/files/patch-freehdl_kernel-db.hh b/cad/freehdl/files/patch-freehdl_kernel-db.hh new file mode 100644 index 000000000000..effb1d35d4f2 --- /dev/null +++ b/cad/freehdl/files/patch-freehdl_kernel-db.hh @@ -0,0 +1,15 @@ +--- freehdl/kernel-db.hh.orig 2013-04-30 20:25:10.000000000 +0000 ++++ freehdl/kernel-db.hh +@@ -254,10 +254,10 @@ public: + + // A hash function template used tp generate a hash number from + // d +-class db_basic_key_hash : public hash { ++class db_basic_key_hash : public __gnu_cxx::hash { + public: + size_t operator()(const db_basic_key& x) const { +- return (*(hash *)this)(((unsigned long)x.value)>>2); ++ return (*(__gnu_cxx::hash *)this)(((unsigned long)x.value)>>2); + } + }; + -- cgit v1.2.3