summaryrefslogtreecommitdiff
path: root/lib/tevent/tevent_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tevent/tevent_util.h')
-rw-r--r--lib/tevent/tevent_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tevent/tevent_util.h b/lib/tevent/tevent_util.h
index c4d43786e5b..829cbc2f6e6 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