Include c.h instead of postgres.h in src/port/*p{read,write}*.c
authorAndres Freund
Sat, 17 Sep 2022 16:21:59 +0000 (09:21 -0700)
committerAndres Freund
Sat, 17 Sep 2022 16:23:53 +0000 (09:23 -0700)
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[email protected]
Backpatch: 12-, where 3fd2a7932ef introduced (some) of these files

src/port/pread.c
src/port/preadv.c
src/port/pwrite.c
src/port/pwritev.c

index 486f07a7dffcc79f730edb283bccb6d7d71f0991..a35d3f4b07c7fad5f8d1a125831f260362f8fa0e 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 
-#include "postgres.h"
+#include "c.h"
 
 #ifdef WIN32
 #include 
index eb153ca502853278e08c55a90555cf8eae4542dd..d83dab6718f3bbc176ac7b52968fd4893e7537cc 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 
-#include "postgres.h"
+#include "c.h"
 
 #ifdef WIN32
 #include 
index 282b27115e509ab22660807cbb74ce5356b6f539..e3a132aa7aacd50605825ebda535fdbe24cb42df 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 
-#include "postgres.h"
+#include "c.h"
 
 #ifdef WIN32
 #include 
index 2e8ef7e3785a11c451627d0f78e2a18beefbd1dd..082bed9abfc0d1665784028e7e3ba26760dd1592 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 
-#include "postgres.h"
+#include "c.h"
 
 #ifdef WIN32
 #include