summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/tests/common.c2
-rw-r--r--server/tests/common.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/server/tests/common.c b/server/tests/common.c
index dad9dc66b..50dc61b16 100644
--- a/server/tests/common.c
+++ b/server/tests/common.c
@@ -29,6 +29,8 @@
#include "util/dlinklist.h"
#include "util/util.h"
+TALLOC_CTX *global_talloc_context = NULL;
+
struct size_snapshot {
struct size_snapshot *prev;
struct size_snapshot *next;
diff --git a/server/tests/common.h b/server/tests/common.h
index 44e2d9afa..0e954d7db 100644
--- a/server/tests/common.h
+++ b/server/tests/common.h
@@ -3,7 +3,7 @@
#include <talloc.h>
-TALLOC_CTX *global_talloc_context;
+extern TALLOC_CTX *global_talloc_context;
#define check_leaks(ctx, bytes) _check_leaks((ctx), (bytes), __location__)
void _check_leaks(TALLOC_CTX *ctx,