pgsql: Include c.h instead of postgres.h in src/port/*p{read,write}*.c

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Include c.h instead of postgres.h in src/port/*p{read,write}*.c
Date: 2022-09-17 16:56:56
Message-ID: E1oZb7g-000m9h-6K@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Include c.h instead of postgres.h in src/port/*p{read,write}*.c

Frontend code shouldn't include postgres.h. Some files in src/port/ need to
include postgres.h/postgres_fe.h, but these files don't.

Discussion: https://postgr.es/m/20220915022626.5xx3ccgkzpkqw5mq@awork3.anarazel.de
Backpatch: 12-, where 3fd2a7932ef introduced (some) of these files

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b4b4b817da5a6293b17109f5a2d61f2e1ab8cf11

Modified Files
--------------
src/port/pread.c | 2 +-
src/port/preadv.c | 2 +-
src/port/pwrite.c | 2 +-
src/port/pwritev.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2022-09-17 23:55:07 pgsql: Make check_usermap() parameter names consistent.
Previous Message Andres Freund 2022-09-17 16:18:28 pgsql: Remove DLLTOOL, DLLWRAP from configure / Makefile.global.in