From 189375b76181c4d16841b8588bb8a4e3f3a60130 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 31 Oct 2004 08:20:05 +0000 Subject: [PATCH] *** empty log message *** --- examples/make_torrent.cpp | 6 +++--- src/file.cpp | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/make_torrent.cpp b/examples/make_torrent.cpp index 02055f271..41a383208 100755 --- a/examples/make_torrent.cpp +++ b/examples/make_torrent.cpp @@ -62,9 +62,9 @@ void add_files( } else { - file f(f, file::in); - f.seek(0, file::end); - libtorrent::size_type size = f.tell(); + file fi(f, file::in); + fi.seek(0, file::end); + libtorrent::size_type size = fi.tell(); t.add_file(l, size); } } diff --git a/src/file.cpp b/src/file.cpp index 40d57df86..f0c3baa19 100755 --- a/src/file.cpp +++ b/src/file.cpp @@ -52,6 +52,7 @@ typedef int mode_t; #include #include #include +#include #endif