Skip to content
Snippets Groups Projects
Commit 4e4f93d3 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

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.)
parent 9ba690e3
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment