diff options
author | joerg <joerg@pkgsrc.org> | 2005-12-23 16:59:46 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-12-23 16:59:46 +0000 |
commit | ff810db8f20202a2fd55ca0129c47439c83e6ece (patch) | |
tree | 55217403274b388e6236487af2afecf7e973abb6 /comms/gsmlib/patches | |
parent | d9e0d07fc9416c456bbd05d34031c6f9ce9e7e14 (diff) | |
download | pkgsrc-ff810db8f20202a2fd55ca0129c47439c83e6ece.tar.gz |
Fix GCC 3.4+ by making the friend declaration an explicit template.
Diffstat (limited to 'comms/gsmlib/patches')
-rw-r--r-- | comms/gsmlib/patches/patch-ab | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/comms/gsmlib/patches/patch-ab b/comms/gsmlib/patches/patch-ab new file mode 100644 index 00000000000..ec6942018b8 --- /dev/null +++ b/comms/gsmlib/patches/patch-ab @@ -0,0 +1,31 @@ +$NetBSD: patch-ab,v 1.1 2005/12/23 16:59:46 joerg Exp $ + +--- gsmlib/gsm_map_key.h.orig 2002-05-14 19:38:12.000000000 +0000 ++++ gsmlib/gsm_map_key.h +@@ -45,20 +45,12 @@ namespace gsmlib + MapKey(SortedStore &myStore, string key) : + _myStore(myStore), _strKey(key) {} + +- friend +- bool operator< +-#ifndef WIN32 +- <> +-#endif +- (const MapKey<SortedStore> &x, +- const MapKey<SortedStore> &y); +- friend +- bool operator== +-#ifndef WIN32 +- <> +-#endif +- (const MapKey<SortedStore> &x, +- const MapKey<SortedStore> &y); ++ template <class _SortedStore> friend ++ bool operator<(const MapKey<_SortedStore> &x, ++ const MapKey<_SortedStore> &y); ++ template <class _SortedStore> friend ++ bool operator==(const MapKey<_SortedStore> &x, ++ const MapKey<_SortedStore> &y); + }; + + // compare two keys |