summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Deolasee2015-06-30 07:49:07 +0000
committerPavan Deolasee2015-06-30 07:49:38 +0000
commit2414d334ae4fb5a8b6b9af1fa8276c148ab90807 (patch)
treed56bb2d5ecec39e120ecc43e02a9797792d8dc91
parentad63bf540e7c4a8b97c4c8518b92fc2a56d01ae1 (diff)
Do not include pgxc.h when relpath.c is compiled in FRONTEND mode
Its not necessary or even appropriate to include a server-side file while compiling in the FRONTEND mode. And there are other side-effects. For example, errcodes.h gets auto-generated during the compilation and early inclusion of that file leads to compilation failure
-rw-r--r--src/common/relpath.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/relpath.c b/src/common/relpath.c
index 9af6955f1e..2cdb97fd5b 100644
--- a/src/common/relpath.c
+++ b/src/common/relpath.c
@@ -24,8 +24,10 @@
#include "storage/backendid.h"
#ifdef PGXC
+#ifndef FRONTEND
#include "pgxc/pgxc.h"
#endif
+#endif
/*
* Lookup table of fork name by fork number.