SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
18
lang/freehdl/patches/patch-freehdl_kernel-util_hh
Normal file
18
lang/freehdl/patches/patch-freehdl_kernel-util_hh
Normal file
|
@ -0,0 +1,18 @@
|
|||
C++11 ambiguity
|
||||
|
||||
Index: freehdl/kernel-util.hh
|
||||
--- freehdl/kernel-util.hh.orig
|
||||
+++ freehdl/kernel-util.hh
|
||||
@@ -24,10 +24,10 @@ using namespace __gnu_cxx;
|
||||
// A hash function template used tp generate a hash number from
|
||||
// pointer values.
|
||||
template<class T>
|
||||
-class pointer_hash : public hash<unsigned long> {
|
||||
+class pointer_hash : public __gnu_cxx::hash<unsigned long> {
|
||||
public:
|
||||
size_t operator()(const T& x) const {
|
||||
- return (*(hash<unsigned long> *)this)(((unsigned long)x)>>2);
|
||||
+ return (*(__gnu_cxx::hash<unsigned long> *)this)(((unsigned long)x)>>2);
|
||||
}
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue