projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c18d946
)
Include c.h instead of postgres.h in src/port/*p{read,write}*.c
author
Andres Freund
Sat, 17 Sep 2022 16:21:59 +0000
(09:21 -0700)
committer
Andres 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
patch
|
blob
|
blame
|
history
src/port/pwrite.c
patch
|
blob
|
blame
|
history
diff --git
a/src/port/pread.c
b/src/port/pread.c
index e7fecebe5ff24b2a397fe6da3f2aa1fc8ed6182e..27d4ba65171ac05591763d682ed7f5e0ecf16aef 100644
(file)
--- a/
src/port/pread.c
+++ b/
src/port/pread.c
@@
-15,7
+15,7
@@
*/
-#include "
postgres
.h"
+#include "
c
.h"
#ifdef WIN32
#include
diff --git
a/src/port/pwrite.c
b/src/port/pwrite.c
index 2e0c154462e65e1a877104205f9d5d15de974986..6a16862411d74e0ce51dff6c177722a62e1a153f 100644
(file)
--- a/
src/port/pwrite.c
+++ b/
src/port/pwrite.c
@@
-15,7
+15,7
@@
*/
-#include "
postgres
.h"
+#include "
c
.h"
#ifdef WIN32
#include