because we already add our own wrappers, and we want to be sure
that they are compatible with the upstream code.
TGT_LDLIBS := $(LIBS) $(PCAP_LIBS)
TGT_LDFLAGS := $(LDFLAGS) $(PCAP_LDFLAGS)
+TGT_PREREQS := $(TALLOC_EXTENSION_LIBS)
+
# libbacktrace is checked out as a submodule and linked statically into libfreeradius-util
# as it's the only library that uses it. Other libraries should not use it directly but
# instead add the functionality they need to libfreeradius-util.
#include <freeradius-devel/util/dlist.h>
#include <freeradius-devel/util/syserror.h>
+#ifndef TALLOC_EXTENSIONS
static TALLOC_CTX *global_ctx;
static _Thread_local TALLOC_CTX *thread_local_ctx;
return af;
}
+#endif
#include <freeradius-devel/build.h>
#include <freeradius-devel/missing.h>
+#ifdef TALLOC_EXTENSIONS
+#include TALLOC_EXTENSIONS
+#else
+
/*
* The default talloc headers have doxygen complaints.
*/
TALLOC_CTX *talloc_autofree_context_global(void);
TALLOC_CTX *talloc_autofree_context_thread_local(void);
+#endif
#ifdef __cplusplus
}
size_tests.mk \
slab_tests.mk \
strerror_tests.mk \
- talloc_tests.mk \
time_tests.mk \
timer_tests.mk \
trie_tests.mk \
value_tests.mk
+
+ifeq "$(TALLOC_EXTENSION_LIBS)" ""
+SUBMAKEFILES += talloc_tests.mk
+endif