pgsql: Include necessary header files in radixtree.h. - Mailing list pgsql-committers

From Masahiko Sawada
Subject pgsql: Include necessary header files in radixtree.h.
Date
Msg-id E1tKkyn-001vnh-LL@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Include necessary header files in radixtree.h.

When #include'ing radixtree.h with RT_SHMEM, it could happen to raise
compiler errors due to missing some declarations of types and
functions.

This commit also removes the inclusion of postgres.h since it's
against our usual convention.

Backpatch to v17, where radixtree.h was introduced.

Reviewed-by: Heikki Linnakangas, Álvaro Herrera
Discussion: https://postgr.es/m/CAD21AoCU9YH%2Bb9Rr8YRw7UjmB%3D1zh8GKQkWNiuN9mVhMvkyrRg%40mail.gmail.com
Backpatch-through: 17

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/724890ffb75c703afc1e0287f5a66b94c2998799

Modified Files
--------------
src/include/lib/radixtree.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Masahiko Sawada
Date:
Subject: pgsql: Include necessary header files in radixtree.h.
Next
From: Nathan Bossart
Date:
Subject: pgsql: Fix unused-but-set-variable compiler warning in reorderbuffer.c.