Date: Fri, 17 Nov 2017 15:23:42 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r325935 - projects/bsd_rdma_4_9/contrib/ofed/libibnetdisc Message-ID: <201711171523.vAHFNgrl074092@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Fri Nov 17 15:23:42 2017 New Revision: 325935 URL: https://svnweb.freebsd.org/changeset/base/325935 Log: Fix compilation of libibnetdisc using in-base GCC v4.2.1. Sponsored by: Mellanox Technologies Modified: projects/bsd_rdma_4_9/contrib/ofed/libibnetdisc/g_hash_table.cpp Modified: projects/bsd_rdma_4_9/contrib/ofed/libibnetdisc/g_hash_table.cpp ============================================================================== --- projects/bsd_rdma_4_9/contrib/ofed/libibnetdisc/g_hash_table.cpp Fri Nov 17 13:12:20 2017 (r325934) +++ projects/bsd_rdma_4_9/contrib/ofed/libibnetdisc/g_hash_table.cpp Fri Nov 17 15:23:42 2017 (r325935) @@ -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() { }; };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711171523.vAHFNgrl074092>