gh-112867: fix for WITH_PYMALLOC_RADIX_TREE=0 (GH-112885)

The _obmalloc_usage structure is only defined if the obmalloc radix tree
is enabled.
This commit is contained in:
Neil Schemenauer 2023-12-09 13:50:48 -08:00 committed by GitHub
parent c1652d6d62
commit 890ce430d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -665,7 +665,9 @@ struct _obmalloc_global_state {
struct _obmalloc_state {
struct _obmalloc_pools pools;
struct _obmalloc_mgmt mgmt;
#if WITH_PYMALLOC_RADIX_TREE
struct _obmalloc_usage usage;
#endif
};

View File

@ -0,0 +1 @@
Fix the build for the case that WITH_PYMALLOC_RADIX_TREE=0 set.