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:25:08 +0000 (09:25 -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/pwrite.c

index e7fecebe5ff24b2a397fe6da3f2aa1fc8ed6182e..27d4ba65171ac05591763d682ed7f5e0ecf16aef 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 
-#include "postgres.h"
+#include "c.h"
 
 #ifdef WIN32
 #include 
index 2e0c154462e65e1a877104205f9d5d15de974986..6a16862411d74e0ce51dff6c177722a62e1a153f 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 
-#include "postgres.h"
+#include "c.h"
 
 #ifdef WIN32
 #include