mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-21 16:46:18 +00:00
* Added missing <sys/types.h> includes. Patch by Artifex Maximus.
* Changed torrent::Object to use placement new instead of a pointer to std::string/list/map. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1128 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -36,6 +36,8 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "core/manager.h"
|
#include "core/manager.h"
|
||||||
#include "core/download.h"
|
#include "core/download.h"
|
||||||
#include "core/download_list.h"
|
#include "core/download_list.h"
|
||||||
|
|||||||
@@ -36,6 +36,8 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <rak/functional.h>
|
#include <rak/functional.h>
|
||||||
#include <rak/functional_fun.h>
|
#include <rak/functional_fun.h>
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ download_factory_add_stream(torrent::Object* root, const char* key, const char*
|
|||||||
if (!stream.good())
|
if (!stream.good())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
root->insert_key_swap(key, obj);
|
root->insert_key_move(key, obj);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user