diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-01-03 09:50:54 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-01-03 09:52:19 -0500 |
commit | 4e4f93d364e33bb46e271f3b960a2cf5f38f402e (patch) | |
tree | 4abd355210d96671741b4e3f9d6f6d62a2389525 /src/lib/net | |
parent | 9ba690e33fd31aef6a2fb6cc5971d1191373f55d (diff) | |
download | tor-4e4f93d364e33bb46e271f3b960a2cf5f38f402e.tar.gz tor-4e4f93d364e33bb46e271f3b960a2cf5f38f402e.zip |
Add a #ifdef HAVE_UNISTD_H check to buffers.c
Reported on tor-dev by Gisle Vanem. Bug not in any released Tor
(The suggested patch used _MSC_VER, but that's not how we do stuff
with autoconf. With autoconf, you detect the feature you want,
rather than trying to list all the systems that do or do not have
it.)
Diffstat (limited to 'src/lib/net')
-rw-r--r-- | src/lib/net/buffers_net.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/net/buffers_net.c b/src/lib/net/buffers_net.c index 576dc56a52..a4c0aca3b5 100644 --- a/src/lib/net/buffers_net.c +++ b/src/lib/net/buffers_net.c @@ -21,7 +21,10 @@ #endif #include <stdlib.h> + +#ifdef HAVE_UNISTD_H #include <unistd.h> +#endif #ifdef PARANOIA /** Helper: If PARANOIA is defined, assert that the buffer in local variable |