mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Only define set_buffer_lengths_to_zero if bufferevents are enabled
Otherwise, on Windows, gcc will warn about the function being unused
This commit is contained in:
parent
0530e80e5d
commit
b0d3c6a878
@ -196,7 +196,7 @@ free_old_inbuf(connection_t *conn)
|
|||||||
}
|
}
|
||||||
#endif
|
#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
|
/** Remove the kernel-space send and receive buffers for <b>s</b>. For use
|
||||||
* with IOCP only. */
|
* with IOCP only. */
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user