소스 검색

Only define set_buffer_lengths_to_zero if bufferevents are enabled

Otherwise, on Windows, gcc will warn about the function being unused
Murdoch@cl.cam.ac.uk 14 년 전
부모
커밋
b0d3c6a878
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/or/main.c

+ 1 - 1
src/or/main.c

@@ -196,7 +196,7 @@ free_old_inbuf(connection_t *conn)
 }
 #endif
 
-#ifdef MS_WINDOWS
+#if defined(MS_WINDOWS) && defined(USE_BUFFEREVENTS)
 /** Remove the kernel-space send and receive buffers for <b>s</b>. For use
  * with IOCP only. */
 static int