Ticket #44585: patch-bitcoin.diff
File patch-bitcoin.diff, 2.4 KB (added by anddam (Andrea D'Amore), 10 years ago) |
---|
-
Portfile
5 5 6 6 name bitcoin 7 7 categories finance crypto 8 version 0.9. 18 version 0.9.2.1 9 9 platforms darwin 10 10 license MIT 11 maintainers easieste openmaintainer yopmail.com:sami.laine11 maintainers easieste yopmail.com:sami.laine openmaintainer 12 12 description client user interface for a peer-to-peer digital currency 13 13 long_description Bitcoin is a peer-to-peer digital currency. By peer-to-peer, \ 14 14 we mean that there is no central authority to issue \ … … 20 20 master_sites https://github.com/[string repeat "$name/" 2]archive/ 21 21 distname v${version} 22 22 worksrcdir ${name}-${version} 23 checksums rmd160 f331dd64675b989f281caf5846ad89a9b034a5b2\24 sha256 bf5021a426b5e38a741a5294a0ceb22daa74cda11c6dc0478c4aa48c55fdccb323 checksums rmd160 02f75852139d1db142fc2cd07b0299769b0aac04 \ 24 sha256 7cadbadd90485b7302b86ce041db576aad650f6c621d3a552d09e7231d3fcfd8 25 25 26 26 depends_build port:pkgconfig \ 27 27 port:autoconf \ -
files/patch_src_src_serialize_h.diff
1 --- src/serialize.h.orig 2014-02-13 19:17:19.000000000 +01002 +++ src/serialize.h 2014-02-13 19:19:00.000000000 +01003 @@ -895,19 +895,6 @@4 iterator insert(iterator it, const char& x=char()) { return vch.insert(it, x); }5 void insert(iterator it, size_type n, const char& x) { vch.insert(it, n, x); }6 7 - void insert(iterator it, const_iterator first, const_iterator last)8 - {9 - assert(last - first >= 0);10 - if (it == vch.begin() + nReadPos && (unsigned int)(last - first) <= nReadPos)11 - {12 - // special case for inserting at the front when there's room13 - nReadPos -= (last - first);14 - memcpy(&vch[nReadPos], &first[0], last - first);15 - }16 - else17 - vch.insert(it, first, last);18 - }19 -20 void insert(iterator it, std::vector<char>::const_iterator first, std::vector<char>::const_iterator last)21 {22 assert(last - first >= 0);