more beos fixes

This commit is contained in:
Arvid Norberg
2009-12-15 13:11:07 +00:00
parent cebcbc3eeb
commit 96cedc9b5f
23 changed files with 92 additions and 36 deletions

View File

@@ -135,11 +135,12 @@ bool sleep_and_input(char* c, int sleep)
FD_ZERO(&set);
FD_SET(0, &set);
timeval tv = {sleep, 0};
if (select(1, &set, 0, 0, &tv) > 0)
{
*c = getc(stdin);
return true;
}
// if (select(1, &set, 0, 0, &tv) > 0)
// {
// *c = getc(stdin);
// return true;
// }
libtorrent::sleep(500);
return false;
}
@@ -752,6 +753,11 @@ int main(int argc, char* argv[])
using namespace libtorrent;
session_settings settings;
{
mutex m;
mutex::scoped_lock l(m);
}
settings.user_agent = "client_test/" LIBTORRENT_VERSION;
settings.auto_upload_slots_rate_based = true;
//settings.announce_to_all_trackers = true;