]> 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:08 +0000 (09:25 -0700)
commitf69b8f324af5470dcece3ec7985964c4b6c94c77
tree2069ea6afaea426626bf5cdb43e341e573c5f4cb
parentc18d946e2352e0909cdb5aa4548ebe569ebb9fcb
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