From b4b4b817da5a6293b17109f5a2d61f2e1ab8cf11 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Sat, 17 Sep 2022 09:21:59 -0700 Subject: [PATCH] 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 | 2 +- src/port/preadv.c | 2 +- src/port/pwrite.c | 2 +- src/port/pwritev.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/port/pread.c b/src/port/pread.c index 486f07a7df..a35d3f4b07 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 eb153ca502..d83dab6718 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 282b27115e..e3a132aa7a 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 2e8ef7e378..082bed9abf 100644 --- a/src/port/pwritev.c +++ b/src/port/pwritev.c @@ -15,7 +15,7 @@ */ -#include "postgres.h" +#include "c.h" #ifdef WIN32 #include