|
From: Nick M. <ni...@us...> - 2010-02-18 18:52:07
|
Author: Nick Mathewson <ni...@to...> Date: Thu, 18 Feb 2010 13:52:04 -0500 Subject: Add some headers to fix freebsd compilation Commit: b72be50d7a3ff0f69f440edafd5ad5fd86e0c2d9 --- sample/hello-world.c | 4 ++++ test/test-ratelim.c | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/sample/hello-world.c b/sample/hello-world.c index 773c858..d042699 100644 --- a/sample/hello-world.c +++ b/sample/hello-world.c @@ -11,6 +11,10 @@ #include <errno.h> #include <stdio.h> #include <signal.h> +#ifndef WIN32 +#include <netinet/in.h> +#include <sys/socket.h> +#endif #include <event2/bufferevent.h> #include <event2/buffer.h> diff --git a/test/test-ratelim.c b/test/test-ratelim.c index ed3d41a..542691a 100644 --- a/test/test-ratelim.c +++ b/test/test-ratelim.c @@ -33,6 +33,9 @@ #ifdef WIN32 #include <winsock2.h> #include <ws2tcpip.h> +#else +#include <sys/socket.h> +#include <netinet/in.h> #endif #include <event2/bufferevent.h> -- 1.6.3 |