]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Include c.h instead of postgres.h in src/port/*p{read,write}*.c
authorAndres Freund <andres@anarazel.de>
Sat, 17 Sep 2022 16:21:59 +0000 (09:21 -0700)
committerAndres Freund <andres@anarazel.de>
Sat, 17 Sep 2022 16:23:49 +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.5xx3ccgkzpkqw5mq@awork3.anarazel.de
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 491605926f252933fce0d6db0417f90b5d0ce4e8..bbf12ee0279674dc6c8c1127d1342809bbb1dc60 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 
-#include "postgres.h"
+#include "c.h"
 
 #ifdef WIN32
 #include <windows.h>
index d12e5a122bbd161c8d0d7866608fde70e0c8dbb7..dcc7fe0db401fae48dee6799f4c581c343982fd4 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 
-#include "postgres.h"
+#include "c.h"
 
 #ifdef WIN32
 #include <windows.h>
index eeaffacc48af709e70809cd62f1c3483e397e90c..cadecc481c2406bdf769baae328144e3a286107c 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 
-#include "postgres.h"
+#include "c.h"
 
 #ifdef WIN32
 #include <windows.h>
index 0bdd69fffc48393859178f4e1dc2b4dbaac2bb98..bc53704ef7962edc65abbd1dd04b205ee511aa0f 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 
-#include "postgres.h"
+#include "c.h"
 
 #ifdef WIN32
 #include <windows.h>