From faabc97c9adffd9468a5d1606467359a81445cf3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 8 Jun 2009 08:15:57 +0200 Subject: async_sock: try fix the source4 build on FreeBSD, Solaris, SLES8 metze --- lib/async_req/async_sock.c | 12 ++++++++---- lib/async_req/async_sock.h | 3 ++- lib/async_req/config.mk | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) (limited to 'lib/async_req') diff --git a/lib/async_req/async_sock.c b/lib/async_req/async_sock.c index 643eb2d308..cf007e17f1 100644 --- a/lib/async_req/async_sock.c +++ b/lib/async_req/async_sock.c @@ -21,12 +21,16 @@ along with this program. If not, see . */ -#include "includes.h" -#include "lib/talloc/talloc.h" -#include "lib/tevent/tevent.h" +#include "replace.h" +#include "system/network.h" +#include "system/filesys.h" +#include +#include #include "lib/async_req/async_sock.h" + +/* Note: lib/util/ is currently GPL */ #include "lib/util/tevent_unix.h" -#include +#include "lib/util/util.h" #ifndef TALLOC_FREE #define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0) diff --git a/lib/async_req/async_sock.h b/lib/async_req/async_sock.h index d47be30589..e7ddff8c92 100644 --- a/lib/async_req/async_sock.h +++ b/lib/async_req/async_sock.h @@ -24,7 +24,8 @@ #ifndef __ASYNC_SOCK_H__ #define __ASYNC_SOCK_H__ -#include "includes.h" +#include +#include struct tevent_req *async_send_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, diff --git a/lib/async_req/config.mk b/lib/async_req/config.mk index 1f4b557ce4..64e537c088 100644 --- a/lib/async_req/config.mk +++ b/lib/async_req/config.mk @@ -1,4 +1,4 @@ [SUBSYSTEM::LIBASYNC_REQ] -PUBLIC_DEPENDENCIES = LIBREPLACE_NETWORK +PUBLIC_DEPENDENCIES = LIBREPLACE_NETWORK LIBTALLOC LIBTEVENT LIBASYNC_REQ_OBJ_FILES = $(addprefix ../lib/async_req/, async_sock.o) -- cgit