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:21:59 +0000 (09:21 -0700)
commit43fcaa345d5af45101c5d96dd164f1ebed686b2c
treec3ea17d0807c794c9cce08bf1248d7aba3001124
parent8d513a6b71b7ad94331a485adaf00adce8ee74ec
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/preadv.c
src/port/pwritev.c
src/port/win32pread.c
src/port/win32pwrite.c