Content-Length: 329531 | pFad | http://github.com/postgrespro/postgres/commit/43fcaa345d5af45101c5d96dd164f1ebed686b2c

7C Include c.h instead of postgres.h in src/port/*p{read,write}*.c · postgrespro/postgres@43fcaa3 · GitHub
Skip to content

Commit 43fcaa3

Browse files
committed
Include c.h instead of postgres.h in src/port/*p{read,write}*.c
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 3fd2a79 introduced (some) of these files
1 parent 8d513a6 commit 43fcaa3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/port/preadv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414

15-
#include "postgres.h"
15+
#include "c.h"
1616

1717
#include <unistd.h>
1818

src/port/pwritev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414

15-
#include "postgres.h"
15+
#include "c.h"
1616

1717
#include <unistd.h>
1818

src/port/win32pread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414

15-
#include "postgres.h"
15+
#include "c.h"
1616

1717
#include <windows.h>
1818

src/port/win32pwrite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414

15-
#include "postgres.h"
15+
#include "c.h"
1616

1717
#include <windows.h>
1818

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/43fcaa345d5af45101c5d96dd164f1ebed686b2c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy