From: Andres Freund Date: Sat, 17 Sep 2022 16:21:59 +0000 (-0700) Subject: Include c.h instead of postgres.h in src/port/*p{read,write}*.c X-Git-Tag: REL_12_13~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5aee41e28de9d15219b97d912dea08723e938295;p=thirdparty%2Fpostgresql.git 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 --- diff --git a/src/port/pread.c b/src/port/pread.c index 464cd2e8655..bba165caeed 100644 --- a/src/port/pread.c +++ b/src/port/pread.c @@ -15,7 +15,7 @@ */ -#include "postgres.h" +#include "c.h" #ifdef WIN32 #include diff --git a/src/port/pwrite.c b/src/port/pwrite.c index a44e9912772..8497fd3e7c0 100644 --- a/src/port/pwrite.c +++ b/src/port/pwrite.c @@ -15,7 +15,7 @@ */ -#include "postgres.h" +#include "c.h" #ifdef WIN32 #include