Skip to content

Commit 8201aea

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 the Makefile in this directory.
1 parent edad08b commit 8201aea

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+
#ifndef FRONTEND
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+
#ifndef FRONTEND
1819
#include "postgres.h"
20+
#else
21+
#include "postgres_fe.h"
22+
#endif
1923

2024
#ifdef WIN32
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+
#ifndef FRONTEND
1415
#include "postgres.h"
16+
#else
17+
#include "postgres_fe.h"
18+
#endif
1519

1620
static const struct
1721
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy