]> 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:25:23 +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.5xx3ccgkzpkqw5mq@awork3.anarazel.de
Backpatch: 12-, where 3fd2a7932ef introduced (some) of these files

src/port/pread.c
src/port/pwrite.c

index 464cd2e865586425c5bb2467d75ab24ac390b0bb..bba165caeed5343ba7311038690176bc8f707ad0 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 
-#include "postgres.h"
+#include "c.h"
 
 #ifdef WIN32
 #include <windows.h>
index a44e99127727e25e7de44f15d484d645faacf735..8497fd3e7c01044e3edda30dce23166ff0cc8a85 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 
-#include "postgres.h"
+#include "c.h"
 
 #ifdef WIN32
 #include <windows.h>