freebsd-ports/net-p2p/linuxdcpp/files/patch-BufferSocket.cpp
Michael Gmelin 8598b0c728 Fix port so it builds again. Did some minor housekeeping while being there.
PR:		190600
Reviewed by:	bapt
Approved by:	bapt
2014-06-18 12:23:54 +00:00

11 lines
475 B
C++

--- dcpp/BufferedSocket.cpp.orig 2014-06-18 00:29:48.737534795 +0200
+++ dcpp/BufferedSocket.cpp 2011-04-17 19:57:09.000000000 +0200
@@ -478,7 +478,7 @@
void BufferedSocket::addTask(Tasks task, TaskData* data) {
dcassert(task == DISCONNECT || task == SHUTDOWN || task == UPDATED || sock.get());
- tasks.push_back(make_pair(task, data)); taskSem.signal();
+ tasks.push_back(make_pair(task, boost::shared_ptr<TaskData>(data))); taskSem.signal();
}
} // namespace dcpp