diff --git a/contrib/ofed/libibnetdisc/g_hash_table.cpp b/contrib/ofed/libibnetdisc/g_hash_table.cpp index 6587369e6f6..941671b86d8 100644 --- a/contrib/ofed/libibnetdisc/g_hash_table.cpp +++ b/contrib/ofed/libibnetdisc/g_hash_table.cpp @@ -31,11 +31,17 @@ * */ +#if defined(__clang__) #include +#define HASH_TABLE_UNORDERED_MAP std::unordered_map +#else +#include +#define HASH_TABLE_UNORDERED_MAP std::tr1::unordered_map +#endif class HashTable { public: - std::unordered_map map; + HASH_TABLE_UNORDERED_MAP map; HashTable() { }; ~HashTable() { }; };