1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

tevent: Define TALLOC_FREE() if it's not defined yet, to allow building

with released versions of talloc.
This commit is contained in:
Jelmer Vernooij 2009-05-16 20:31:59 +02:00
parent 31a2347a0a
commit 72b744f38e

View File

@ -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