From 72b744f38ebb9f9576c05c7bb0a00de26697ec8f Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 16 May 2009 20:31:59 +0200 Subject: tevent: Define TALLOC_FREE() if it's not defined yet, to allow building with released versions of talloc. --- lib/tevent/tevent_util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') diff --git a/lib/tevent/tevent_util.h b/lib/tevent/tevent_util.h index c4d43786e5..829cbc2f6e 100644 --- a/lib/tevent/tevent_util.h +++ b/lib/tevent/tevent_util.h @@ -116,3 +116,9 @@ do { \ const char **ev_str_list_add(const char **list, const char *s); int ev_set_blocking(int fd, bool set); size_t ev_str_list_length(const char **list); + +/* Defined here so we can build against older talloc versions that don't + * have this define yet. */ +#ifndef TALLOC_FREE +#define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0) +#endif -- cgit