diff options
author | Diane Bruce <db@FreeBSD.org> | 2013-12-08 01:14:18 +0000 |
---|---|---|
committer | Diane Bruce <db@FreeBSD.org> | 2013-12-08 01:14:18 +0000 |
commit | ebedf614ba3a7ed2e71a73bd483f0b38aee9e335 (patch) | |
tree | a07561bf4194dc8e649ba5ea632238c58ad34ae6 /comms/fldigi/files/patch-src_spot_spot.cxx | |
parent | Update to 0.24. (diff) |
- Fix build on 10.x
- Add STAGEDIR support
Notes
Notes:
svn path=/head/; revision=335860
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; + |