Move pipe.c into the backend.
authorRobert Haas <[email protected]>
Fri, 4 Feb 2011 20:52:21 +0000 (15:52 -0500)
committerRobert Haas <[email protected]>
Fri, 4 Feb 2011 20:52:21 +0000 (15:52 -0500)
It's full of backend-specific error reporting, so it's neither possible
nor necessary for this to be used from frontend code.

src/backend/port/Makefile
src/backend/port/pipe.c [moved from src/port/pipe.c with 96% similarity]
src/port/Makefile

index 8ebb6d5703764e5e6ab953249bcdbb5b16c50b39..2560d6b16eb294a9ac2c3d4e84e72c9acc49ce3a 100644 (file)
@@ -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
similarity index 96%
rename from src/port/pipe.c
rename to src/backend/port/pipe.c
index 95839c6583004f73233b7ed28685847d1b3e2c81..eeed3fc2e1132f8968870124b2be4304b55e5fc4 100644 (file)
  * 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
index c005140f83f78336833217dcb4f136de67f44912..60295dcdefde103dc5aa52e6062940acef56b894 100644 (file)
@@ -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)