Fix compilation of libibnetdisc using in-base GCC v4.2.1.
Sponsored by: Mellanox Technologies
This commit is contained in:
parent
7093892ca0
commit
0b12d33c3c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/bsd_rdma_4_9/; revision=325935
@ -31,11 +31,17 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#if defined(__clang__)
|
||||
#include <unordered_map>
|
||||
#define HASH_TABLE_UNORDERED_MAP std::unordered_map
|
||||
#else
|
||||
#include <tr1/unordered_map>
|
||||
#define HASH_TABLE_UNORDERED_MAP std::tr1::unordered_map
|
||||
#endif
|
||||
|
||||
class HashTable {
|
||||
public:
|
||||
std::unordered_map<void *, void *> map;
|
||||
HASH_TABLE_UNORDERED_MAP<void *, void *> map;
|
||||
HashTable() { };
|
||||
~HashTable() { };
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user