aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2011-02-04 15:52:21 -0500
committerRobert Haas <rhaas@postgresql.org>2011-02-04 15:52:21 -0500
commitb1e65c32168a2b64276a57be8c4dc5a63d33e12d (patch)
tree3ec244f7fad20bd370c263538f9eac6384360324
parentb157a1d5554d6dfbd13fb605f08d51ce17532375 (diff)
downloadpostgresql-b1e65c32168a2b64276a57be8c4dc5a63d33e12d.tar.gz
postgresql-b1e65c32168a2b64276a57be8c4dc5a63d33e12d.zip
Move pipe.c into the backend.
It's full of backend-specific error reporting, so it's neither possible nor necessary for this to be used from frontend code.
-rw-r--r--src/backend/port/Makefile4
-rw-r--r--src/backend/port/pipe.c (renamed from src/port/pipe.c)6
-rw-r--r--src/port/Makefile4
3 files changed, 5 insertions, 9 deletions
diff --git a/src/backend/port/Makefile b/src/backend/port/Makefile
index 8ebb6d57037..2560d6b16eb 100644
--- a/src/backend/port/Makefile
+++ b/src/backend/port/Makefile
@@ -23,6 +23,10 @@ include $(top_builddir)/src/Makefile.global
OBJS = dynloader.o pg_sema.o pg_shmem.o pg_latch.o $(TAS)
+ifneq (,$(filter $(PORTNAME),cygwin win32))
+OBJS += pipe.o
+endif
+
ifeq ($(PORTNAME), darwin)
SUBDIRS += darwin
endif
diff --git a/src/port/pipe.c b/src/backend/port/pipe.c
index 95839c65830..eeed3fc2e11 100644
--- a/src/port/pipe.c
+++ b/src/backend/port/pipe.c
@@ -10,16 +10,12 @@
* must be replaced with recv/send.
*
* IDENTIFICATION
- * src/port/pipe.c
+ * src/backend/port/pipe.c
*
*-------------------------------------------------------------------------
*/
-#ifndef FRONTEND
#include "postgres.h"
-#else
-#include "postgres_fe.h"
-#endif
#ifdef WIN32
int
diff --git a/src/port/Makefile b/src/port/Makefile
index c005140f83f..60295dcdefd 100644
--- a/src/port/Makefile
+++ b/src/port/Makefile
@@ -34,10 +34,6 @@ OBJS = $(LIBOBJS) chklocale.o dirmod.o exec.o inet_net_ntop.o noblock.o \
path.o pgcheckdir.o pgmkdirp.o pgsleep.o pgstrcasecmp.o \
qsort.o qsort_arg.o sprompt.o thread.o
-ifneq (,$(filter $(PORTNAME),cygwin win32))
-OBJS += pipe.o
-endif
-
# foo_srv.o and foo.o are both built from foo.c, but only foo.o has -DFRONTEND
OBJS_SRV = $(OBJS:%.o=%_srv.o)