Fix compilation of libibnetdisc using in-base GCC v4.2.1.

Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2017-11-17 15:23:42 +00:00
parent 7093892ca0
commit 0b12d33c3c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/bsd_rdma_4_9/; revision=325935

View File

@ -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() { };
};