소스 검색

Fixed compile error without BitTorrent support

Tatsuhiro Tsujikawa 13 년 전
부모
커밋
7bc2a14d9f
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/RequestGroupMan.cc

+ 2 - 0
src/RequestGroupMan.cc

@@ -362,6 +362,7 @@ public:
                    static_cast<unsigned long>(nextGroups.size())));
             e_->getRequestGroupMan()->insertReservedGroup(0, nextGroups);
           }
+#ifdef ENABLE_BITTORRENT
           // For in-memory download (e.g., Magnet URI), the
           // FileEntry::getPath() does not return actual file path, so
           // we don't remove it.
@@ -383,6 +384,7 @@ public:
               }
             }
           }
+#endif // ENABLE_BITTORRENT
         } else {
           A2_LOG_NOTICE
             (fmt(_("Download GID#%lld not complete: %s"),