diff options
author | Andres Freund <andres@anarazel.de> | 2022-09-17 09:21:59 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2022-09-17 09:25:23 -0700 |
commit | 5aee41e28de9d15219b97d912dea08723e938295 (patch) | |
tree | 56179a43521d286d9b78afd7f8e40561c5f2a9ba | |
parent | b3b88d7480b81a7622045a88682296c8d4683dbf (diff) | |
download | postgresql-5aee41e28de9d15219b97d912dea08723e938295.tar.gz postgresql-5aee41e28de9d15219b97d912dea08723e938295.zip |
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
-rw-r--r-- | src/port/pread.c | 2 | ||||
-rw-r--r-- | src/port/pwrite.c | 2 |
2 files changed, 2 insertions, 2 deletions
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 <windows.h> 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 <windows.h> |