diff options
Diffstat (limited to 'src/tests/common.h')
-rw-r--r-- | src/tests/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/common.h b/src/tests/common.h index 0b351f5d6..1c6de2c3d 100644 --- a/src/tests/common.h +++ b/src/tests/common.h @@ -30,6 +30,8 @@ #include "providers/data_provider.h" #include "providers/ldap/sdap.h" +#define N_ELEMENTS(arr) (sizeof(arr) / sizeof(arr[0])) + extern TALLOC_CTX *global_talloc_context; #define check_leaks(ctx, bytes) _check_leaks((ctx), (bytes), __location__) |