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