Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8201aea

Browse files
committed
Avoid including postgres.h in frontend compiles of src/port.
This isn't kosher, and doesn't play nicely with my recent changes to theMakefile in this directory.
1 parentedad08b commit8201aea

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

‎src/port/dirent.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
1313
*-------------------------------------------------------------------------
1414
*/
1515

16+
#ifndefFRONTEND
1617
#include"postgres.h"
18+
#else
19+
#include"postgres_fe.h"
20+
#endif
21+
1722
#include<dirent.h>
1823

1924

‎src/port/pipe.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
*-------------------------------------------------------------------------
1616
*/
1717

18+
#ifndefFRONTEND
1819
#include"postgres.h"
20+
#else
21+
#include"postgres_fe.h"
22+
#endif
1923

2024
#ifdefWIN32
2125
int

‎src/port/win32error.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
*-------------------------------------------------------------------------
1212
*/
1313

14+
#ifndefFRONTEND
1415
#include"postgres.h"
16+
#else
17+
#include"postgres_fe.h"
18+
#endif
1519

1620
staticconststruct
1721
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp