OSDN Git Service

Avoid including postgres.h in frontend compiles of src/port.
authorRobert Haas <rhaas@postgresql.org>
Fri, 4 Feb 2011 18:11:53 +0000 (13:11 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 4 Feb 2011 18:11:53 +0000 (13:11 -0500)
This isn't kosher, and doesn't play nicely with my recent changes to the
Makefile in this directory.

src/port/dirent.c
src/port/pipe.c
src/port/win32error.c

index 9e1d131..6219ccb 100644 (file)
  *-------------------------------------------------------------------------
  */
 
+#ifndef FRONTEND
 #include "postgres.h"
+#else
+#include "postgres_fe.h"
+#endif
+
 #include <dirent.h>
 
 
index 0963cbb..95839c6 100644 (file)
  *-------------------------------------------------------------------------
  */
 
+#ifndef FRONTEND
 #include "postgres.h"
+#else
+#include "postgres_fe.h"
+#endif
 
 #ifdef WIN32
 int
index 5dfb694..4b3b1ea 100644 (file)
  *-------------------------------------------------------------------------
  */
 
+#ifndef FRONTEND
 #include "postgres.h"
+#else
+#include "postgres_fe.h"
+#endif
 
 static const struct
 {