Skip to content

Commit c5f6f8b

Browse files
committed
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. (cherry picked from commit 890ce43) Co-authored-by: Neil Schemenauer <[email protected]>
1 parent 4d7c24b commit c5f6f8b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Include/internal/pycore_obmalloc.h

+2
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,9 @@ struct _obmalloc_global_state {
665665
struct _obmalloc_state {
666666
struct _obmalloc_pools pools;
667667
struct _obmalloc_mgmt mgmt;
668+
#if WITH_PYMALLOC_RADIX_TREE
668669
struct _obmalloc_usage usage;
670+
#endif
669671
};
670672

671673

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix the build for the case that WITH_PYMALLOC_RADIX_TREE=0 set.

0 commit comments

Comments
 (0)