summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund2022-09-17 16:21:59 +0000
committerAndres Freund2022-09-17 16:21:59 +0000
commit43fcaa345d5af45101c5d96dd164f1ebed686b2c (patch)
treec3ea17d0807c794c9cce08bf1248d7aba3001124
parent8d513a6b71b7ad94331a485adaf00adce8ee74ec (diff)
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/[email protected] Backpatch: 12-, where 3fd2a7932ef introduced (some) of these files
-rw-r--r--src/port/preadv.c2
-rw-r--r--src/port/pwritev.c2
-rw-r--r--src/port/win32pread.c2
-rw-r--r--src/port/win32pwrite.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/port/preadv.c b/src/port/preadv.c
index 48b64d4593d..188e10f0652 100644
--- a/src/port/preadv.c
+++ b/src/port/preadv.c
@@ -12,7 +12,7 @@
*/
-#include "postgres.h"
+#include "c.h"
#include <unistd.h>
diff --git a/src/port/pwritev.c b/src/port/pwritev.c
index 8b303fcbcdc..de9b7e4e3d3 100644
--- a/src/port/pwritev.c
+++ b/src/port/pwritev.c
@@ -12,7 +12,7 @@
*/
-#include "postgres.h"
+#include "c.h"
#include <unistd.h>
diff --git a/src/port/win32pread.c b/src/port/win32pread.c
index 7058c3460b5..ebcdd337569 100644
--- a/src/port/win32pread.c
+++ b/src/port/win32pread.c
@@ -12,7 +12,7 @@
*/
-#include "postgres.h"
+#include "c.h"
#include <windows.h>
diff --git a/src/port/win32pwrite.c b/src/port/win32pwrite.c
index 455cec4a747..7f2e62e8a78 100644
--- a/src/port/win32pwrite.c
+++ b/src/port/win32pwrite.c
@@ -12,7 +12,7 @@
*/
-#include "postgres.h"
+#include "c.h"
#include <windows.h>