head 1.2; access; symbols pkgsrc-2018Q1:1.1.0.2 pkgsrc-2018Q1-base:1.1; locks; strict; comment @// @; 1.2 date 2018.04.08.10.14.15; author scole; state dead; branches; next 1.1; commitid VJgH1uToiPETJCxA; 1.1 date 2018.03.16.21.06.31; author scole; state Exp; branches; next ; commitid AtRuQ4JTG36v5JuA; desc @@ 1.2 log @Fix compilation with libthrift 0.11.0 @ text @$NetBSD: patch-libpurple_thriftclient.cpp,v 1.1 2018/03/16 21:06:31 scole Exp $ std::make_shared does not seem to compile on NetBSD so use boost::make_shared --- libpurple/thriftclient.cpp.orig 2018-02-21 13:01:04.000000000 -0800 +++ libpurple/thriftclient.cpp 2018-03-16 09:45:17.000000000 -0700 @@@@ -8,11 +8,11 @@@@ ThriftClient::ThriftClient(PurpleAccount *acct, PurpleConnection *conn, std::string path) : line::TalkServiceClient( - std::make_shared( - std::make_shared(acct, conn, LINE_THRIFT_SERVER, 443, true))), + boost::make_shared( + boost::make_shared(acct, conn, LINE_THRIFT_SERVER, 443, true))), path(path) { - http = std::static_pointer_cast(getInputProtocol()->getTransport()); + http = boost::static_pointer_cast(getInputProtocol()->getTransport()); } void ThriftClient::set_path(std::string path) { @ 1.1 log @Update to nb2/20180221 which mainly fixes login issue. Use boost::make_shared instead of std::make_shared in a few places where it doesn't compile with netbsd-7/gcc4.8.5. I'm not sure, there may be a more portable way to handle. @ text @d1 1 a1 1 $NetBSD: patch-libpurple_thriftclient.cpp,v 1.1 2018/03/16 09:49:04 scole Exp $ @