From a259b2ba93fa12d89a239756e488b7005642e682 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 16 Jul 2009 06:35:25 +0000 Subject: [PATCH] windows build fix --- src/create_torrent.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/create_torrent.cpp b/src/create_torrent.cpp index 175f4375b..cf7304414 100644 --- a/src/create_torrent.cpp +++ b/src/create_torrent.cpp @@ -145,12 +145,16 @@ namespace libtorrent boost::filesystem::path get_symlink_path(char const* path) { +#ifdef TORRENT_WINDOWS + return ""; +#else char buf[MAX_SYMLINK_PATH]; int char_read = readlink(path,buf,MAX_SYMLINK_PATH); if (char_read < 0) return ""; if (char_read < MAX_SYMLINK_PATH) buf[char_read] = 0; else buf[0] = 0; return buf; +#endif } boost::filesystem::path TORRENT_EXPORT get_symlink_path(boost::filesystem::path const& p)