fix file.cpp build on linux

This commit is contained in:
Arvid Norberg 2009-01-17 00:09:44 +00:00
parent e670f3807b
commit 78d3654263
2 changed files with 5 additions and 5 deletions

View File

@ -147,8 +147,8 @@ namespace libtorrent
#else
int m_fd;
#endif
#if defined TORRENT_WINDOWS || defined TORRENT_DEBUG
void init_file();
#if defined TORRENT_WINDOWS || defined TORRENT_LINUX || defined TORRENT_DEBUG
static void init_file();
static int m_page_size;
#endif
int m_open_mode;

View File

@ -234,7 +234,7 @@ namespace libtorrent
// defined in storage.cpp
int bufs_size(file::iovec_t const* bufs, int num_bufs);
#if defined TORRENT_WINDOWS || defined TORRENT_DEBUG
#if defined TORRENT_WINDOWS || defined TORRENT_LINUX || defined TORRENT_DEBUG
int file::m_page_size = 0;
@ -260,7 +260,7 @@ namespace libtorrent
TORRENT_ASSERT(num_bufs > 0);
TORRENT_ASSERT(is_open());
#if defined TORRENT_WINDOWS || defined TORRENT_DEBUG
#if defined TORRENT_WINDOWS || defined TORRENT_LINUX || defined TORRENT_DEBUG
// make sure m_page_size is initialized
init_file();
#endif
@ -417,7 +417,7 @@ namespace libtorrent
TORRENT_ASSERT(num_bufs > 0);
TORRENT_ASSERT(is_open());
#if defined TORRENT_WINDOWS || defined TORRENT_DEBUG
#if defined TORRENT_WINDOWS || defined TORRENT_LINUX || defined TORRENT_DEBUG
// make sure m_page_size is initialized
init_file();
#endif