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_15_RC1~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=940c1c7ed3d14ae132c9b96643be6901b2d92993;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 491605926f2..bbf12ee0279 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/preadv.c b/src/port/preadv.c index d12e5a122bb..dcc7fe0db40 100644 --- a/src/port/preadv.c +++ b/src/port/preadv.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 eeaffacc48a..cadecc481c2 100644 --- a/src/port/pwrite.c +++ b/src/port/pwrite.c @@ -15,7 +15,7 @@ */ -#include "postgres.h" +#include "c.h" #ifdef WIN32 #include diff --git a/src/port/pwritev.c b/src/port/pwritev.c index 0bdd69fffc4..bc53704ef79 100644 --- a/src/port/pwritev.c +++ b/src/port/pwritev.c @@ -15,7 +15,7 @@ */ -#include "postgres.h" +#include "c.h" #ifdef WIN32 #include