diff options
author | rillig <rillig@pkgsrc.org> | 2006-08-30 18:54:34 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-08-30 18:54:34 +0000 |
commit | 6d49e27a7868b1feac51d9d8a53576a196e6917a (patch) | |
tree | abcd692aafd7baa9ae3f0896010e0b2ab0a96c74 /archivers/dar/patches | |
parent | 74550ffac1fe294250f48c495e371ef5e7fe2e0c (diff) | |
download | pkgsrc-6d49e27a7868b1feac51d9d8a53576a196e6917a.tar.gz |
Added a patch for Solaris.
Diffstat (limited to 'archivers/dar/patches')
-rw-r--r-- | archivers/dar/patches/patch-ad | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/archivers/dar/patches/patch-ad b/archivers/dar/patches/patch-ad new file mode 100644 index 00000000000..c418481d98f --- /dev/null +++ b/archivers/dar/patches/patch-ad @@ -0,0 +1,17 @@ +$NetBSD: patch-ad,v 1.3 2006/08/30 18:54:34 rillig Exp $ + +On Solaris 10 with SunPro, vector<> does not have a method assign(). + +--- src/libdar/mask_list.cpp.orig 2006-01-08 17:33:43.000000000 +0100 ++++ src/libdar/mask_list.cpp 2006-08-30 19:03:29.396038900 +0200 +@@ -177,7 +177,9 @@ namespace libdar + tmp.unique(); // remove duplicates + + // but we need the indexing of vectors +- contenu.assign(tmp.begin(), tmp.end()); ++ contenu.clear(); ++ for (list<string>::const_iterator it = tmp.begin(); it != tmp.end(); it++) ++ contenu.push_back(*it); + taille = contenu.size(); + if(taille < contenu.size()) + throw Erange("mask_list::mask_list", tools_printf(gettext("Too much line in file %s (integer overflow)"), filename_list)); |