Commit b1e65c32 authored by Robert Haas's avatar Robert Haas

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.
parent b157a1d5
...@@ -23,6 +23,10 @@ include $(top_builddir)/src/Makefile.global ...@@ -23,6 +23,10 @@ include $(top_builddir)/src/Makefile.global
OBJS = dynloader.o pg_sema.o pg_shmem.o pg_latch.o $(TAS) 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) ifeq ($(PORTNAME), darwin)
SUBDIRS += darwin SUBDIRS += darwin
endif endif
......
...@@ -10,16 +10,12 @@ ...@@ -10,16 +10,12 @@
* must be replaced with recv/send. * must be replaced with recv/send.
* *
* IDENTIFICATION * IDENTIFICATION
* src/port/pipe.c * src/backend/port/pipe.c
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#ifndef FRONTEND
#include "postgres.h" #include "postgres.h"
#else
#include "postgres_fe.h"
#endif
#ifdef WIN32 #ifdef WIN32
int int
......
...@@ -34,10 +34,6 @@ OBJS = $(LIBOBJS) chklocale.o dirmod.o exec.o inet_net_ntop.o noblock.o \ ...@@ -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 \ path.o pgcheckdir.o pgmkdirp.o pgsleep.o pgstrcasecmp.o \
qsort.o qsort_arg.o sprompt.o thread.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 # foo_srv.o and foo.o are both built from foo.c, but only foo.o has -DFRONTEND
OBJS_SRV = $(OBJS:%.o=%_srv.o) OBJS_SRV = $(OBJS:%.o=%_srv.o)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment