]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Only define set_buffer_lengths_to_zero if bufferevents are enabled
authorMurdoch@cl.cam.ac.uk <Murdoch@cl.cam.ac.uk>
Wed, 30 Nov 2011 20:14:46 +0000 (20:14 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 30 Nov 2011 23:06:55 +0000 (18:06 -0500)
Otherwise, on Windows, gcc will warn about the function being unused

src/or/main.c

index d3eb721d8a68aa4d8c4ecd2ef1ff12cb836f4d56..3cf98565c831f7470fcb811fcb8833d53df2ca90 100644 (file)
@@ -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