Include c.h instead of postgres.h in src/port/*p{read,write}*.c
authorAndres Freund <[email protected]>
Sat, 17 Sep 2022 16:21:59 +0000 (09:21 -0700)
committerAndres Freund <[email protected]>
Sat, 17 Sep 2022 16:21:59 +0000 (09:21 -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/preadv.c
src/port/pwritev.c
src/port/win32pread.c
src/port/win32pwrite.c

index 48b64d4593d778349da4a5591048bf7997999652..188e10f0652d4c1b8576ad27ae7731c778651798 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 
-#include "postgres.h"
+#include "c.h"
 
 #include <unistd.h>
 
index 8b303fcbcdc0e4fe8b0961feda4f011cf9c8f842..de9b7e4e3d30fd809e176e465c74966bc2ce7fd8 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 
-#include "postgres.h"
+#include "c.h"
 
 #include <unistd.h>
 
index 7058c3460b517e552b73f436a2a0912118237fee..ebcdd337569923f89463782a7ae0671ca5ec6a8c 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 
-#include "postgres.h"
+#include "c.h"
 
 #include <windows.h>
 
index 455cec4a747f281df2d0deb0eed2ed0d33f8e5c5..7f2e62e8a7813ad4e7f9f4085b8924efd45e2441 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 
-#include "postgres.h"
+#include "c.h"
 
 #include <windows.h>