summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2022-09-17 09:21:59 -0700
committerAndres Freund <andres@anarazel.de>2022-09-17 09:25:08 -0700
commitf69b8f324af5470dcece3ec7985964c4b6c94c77 (patch)
tree2069ea6afaea426626bf5cdb43e341e573c5f4cb /src
parentc18d946e2352e0909cdb5aa4548ebe569ebb9fcb (diff)
downloadpostgresql-f69b8f324af5470dcece3ec7985964c4b6c94c77.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/port/pread.c2
-rw-r--r--src/port/pwrite.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/port/pread.c b/src/port/pread.c
index e7fecebe5f..27d4ba6517 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 2e0c154462..6a16862411 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>