]> granicus.if.org Git - postgresql/commitdiff
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 9e1d1317efcf22d0aa5dd13e37ceaeabe1db23b3..6219ccb46947901b4c3da961d1cae5bbe6ff7706 100644 (file)
  *-------------------------------------------------------------------------
  */
 
+#ifndef FRONTEND
 #include "postgres.h"
+#else
+#include "postgres_fe.h"
+#endif
+
 #include <dirent.h>
 
 
index 0963cbba78afe9443450a4a3ab74af32c3477af5..95839c6583004f73233b7ed28685847d1b3e2c81 100644 (file)
  *-------------------------------------------------------------------------
  */
 
+#ifndef FRONTEND
 #include "postgres.h"
+#else
+#include "postgres_fe.h"
+#endif
 
 #ifdef WIN32
 int
index 5dfb694180422705af4d659cf4daf768f9ba9cb6..4b3b1ea7d6ea189277b9d4945b97b5e9fc3bd5da 100644 (file)
  *-------------------------------------------------------------------------
  */
 
+#ifndef FRONTEND
 #include "postgres.h"
+#else
+#include "postgres_fe.h"
+#endif
 
 static const struct
 {