diff options
Diffstat (limited to 'comms/fldigi/files/patch-src_spot_spot.cxx')
-rw-r--r-- | comms/fldigi/files/patch-src_spot_spot.cxx | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/comms/fldigi/files/patch-src_spot_spot.cxx b/comms/fldigi/files/patch-src_spot_spot.cxx new file mode 100644 index 000000000000..17b83ee7f1e2 --- /dev/null +++ b/comms/fldigi/files/patch-src_spot_spot.cxx @@ -0,0 +1,29 @@ +--- src/spot/spot.cxx.orig 2013-11-18 20:31:18.824757958 -0500 ++++ src/spot/spot.cxx 2013-11-18 20:34:28.424968955 -0500 +@@ -23,7 +23,11 @@ + #include <config.h> + + #include <list> ++#ifdef __clang__ ++#include <unordered_map> ++#else + #include <tr1/unordered_map> ++#endif + #include <functional> + + #include "trx.h" +@@ -60,9 +64,14 @@ + }; + + typedef list<callback_t*> callback_p_list_t; ++#ifdef __clang__ ++typedef std::unordered_map<fre_t*, callback_p_list_t, fre_hash, fre_comp> rcblist_t; ++static std::unordered_map<int, string> buffers; ++#else + typedef tr1::unordered_map<fre_t*, callback_p_list_t, fre_hash, fre_comp> rcblist_t; + + static tr1::unordered_map<int, string> buffers; ++#endif + static cblist_t cblist; + static rcblist_t rcblist; + |