浏览代码

fix a compilation warning

Nick Mathewson 9 年之前
父节点
当前提交
b223b7c22d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/or/circuitbuild.h

+ 2 - 0
src/or/circuitbuild.h

@@ -61,8 +61,10 @@ const node_t *choose_good_entry_server(uint8_t purpose,
 
 #ifdef CIRCUITBUILD_PRIVATE
 STATIC circid_t get_unique_circ_id_by_chan(channel_t *chan);
+#if defined(ENABLE_TOR2WEB_MODE) || defined(TOR_UNIT_TESTS)
 STATIC const node_t *pick_tor2web_rendezvous_node(router_crn_flags_t flags,
                                                   const or_options_t *options);
+#endif
 
 #endif