]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Include c.h instead of postgres.h in src/port/*p{read,write}*.c
authorAndres Freund <andres@anarazel.de>
Sat, 17 Sep 2022 16:21:59 +0000 (09:21 -0700)
committerAndres Freund <andres@anarazel.de>
Sat, 17 Sep 2022 16:25:23 +0000 (09:25 -0700)
commit5aee41e28de9d15219b97d912dea08723e938295
tree56179a43521d286d9b78afd7f8e40561c5f2a9ba
parentb3b88d7480b81a7622045a88682296c8d4683dbf
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
src/port/pread.c
src/port/pwrite.c