commit d00526018524956084364987edecbfa40321d0d9 Author: Fabian Keil fk@fabiankeil.de Date: Wed Nov 20 14:53:23 2013 +0100
Include <unistd.h> in src/util.h
On FreeBSD 11-CURRENT this fixes the compilation failure:
In file included from ./src/proxy-bio.h:16, from src/proxy-bio.c:38: ./src/util.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wait_with_timeout' ./src/util.h:50: warning: 'struct timeval' declared inside parameter list ./src/util.h:50: warning: its scope is only this definition or declaration, which is probably not what you want ./src/util.h:51: warning: 'struct timeval' declared inside parameter list ./src/util.h:57: warning: 'struct timeval' declared inside parameter list *** Error code 1 --- src/util.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/src/util.h b/src/util.h index 4fb9b8d..42513c3 100644 --- a/src/util.h +++ b/src/util.h @@ -11,6 +11,7 @@ #include <errno.h> #include <string.h> #include <stdlib.h> +#include <unistd.h>
#ifdef TARGET_OS_HAIKU #include <stdarg.h>
tor-commits@lists.torproject.org