diff --git a/src/port/dirent.c b/src/port/dirent.c index 9e1d1317ef..6219ccb469 100644 --- a/src/port/dirent.c +++ b/src/port/dirent.c @@ -13,7 +13,12 @@ *------------------------------------------------------------------------- */ +#ifndef FRONTEND #include "postgres.h" +#else +#include "postgres_fe.h" +#endif + #include diff --git a/src/port/pipe.c b/src/port/pipe.c index 0963cbba78..95839c6583 100644 --- a/src/port/pipe.c +++ b/src/port/pipe.c @@ -15,7 +15,11 @@ *------------------------------------------------------------------------- */ +#ifndef FRONTEND #include "postgres.h" +#else +#include "postgres_fe.h" +#endif #ifdef WIN32 int diff --git a/src/port/win32error.c b/src/port/win32error.c index 5dfb694180..4b3b1ea7d6 100644 --- a/src/port/win32error.c +++ b/src/port/win32error.c @@ -11,7 +11,11 @@ *------------------------------------------------------------------------- */ +#ifndef FRONTEND #include "postgres.h" +#else +#include "postgres_fe.h" +#endif static const struct {