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:23:49 +0000 (09:23 -0700)
commit940c1c7ed3d14ae132c9b96643be6901b2d92993
tree34e8057e75b83d72a5cd3b5b83e9098e2fac9b3b
parentfb503793ef50eb16eb1924251d2ed58e1621eeb3
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/preadv.c
src/port/pwrite.c
src/port/pwritev.c