summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorNeil Schemenauer <nas-github@arctrix.com>2023-12-09 21:50:48 (GMT)
committerGitHub <noreply@github.com>2023-12-09 21:50:48 (GMT)
commit890ce430d94b0b2bccc92a8472b1e1030b4faeb8 (patch)
treed4c9586f89d33169aebdf24d6404caed6654685d /Include
parentc1652d6d6201e5407b94afc297115a584b5a0955 (diff)
downloadcpython-890ce430d94b0b2bccc92a8472b1e1030b4faeb8.zip
cpython-890ce430d94b0b2bccc92a8472b1e1030b4faeb8.tar.gz
cpython-890ce430d94b0b2bccc92a8472b1e1030b4faeb8.tar.bz2
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.
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_obmalloc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_obmalloc.h b/Include/internal/pycore_obmalloc.h
index b0dbf53..17572db 100644
--- a/Include/internal/pycore_obmalloc.h
+++ b/Include/internal/pycore_obmalloc.h
@@ -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
};