aboutsummaryrefslogtreecommitdiff
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:23:49 -0700
commit940c1c7ed3d14ae132c9b96643be6901b2d92993 (patch)
tree34e8057e75b83d72a5cd3b5b83e9098e2fac9b3b
parentfb503793ef50eb16eb1924251d2ed58e1621eeb3 (diff)
downloadpostgresql-940c1c7ed3d14ae132c9b96643be6901b2d92993.tar.gz
postgresql-940c1c7ed3d14ae132c9b96643be6901b2d92993.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.c2
-rw-r--r--src/port/preadv.c2
-rw-r--r--src/port/pwrite.c2
-rw-r--r--src/port/pwritev.c2
4 files changed, 4 insertions, 4 deletions
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 <windows.h>
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 <windows.h>
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 <windows.h>
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 <windows.h>