Include c.h instead of postgres.h in src/port/*p{read,write}*.c
Andres Freund <andres@anarazel.de>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/port/pread.c | modified | +1 −1 |
| src/port/preadv.c | modified | +1 −1 |
| src/port/pwrite.c | modified | +1 −1 |
| src/port/pwritev.c | modified | +1 −1 |
Discussion
- [RFC] building postgres with meson 392 messages · 2021-10-12 → 2023-06-12