Skip to content

Commit b1e65c3

Browse files
committed
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.
1 parent b157a1d commit b1e65c3

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

src/backend/port/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ include $(top_builddir)/src/Makefile.global
2323

2424
OBJS = dynloader.o pg_sema.o pg_shmem.o pg_latch.o $(TAS)
2525

26+
ifneq (,$(filter $(PORTNAME),cygwin win32))
27+
OBJS += pipe.o
28+
endif
29+
2630
ifeq ($(PORTNAME), darwin)
2731
SUBDIRS += darwin
2832
endif

src/port/pipe.c renamed to src/backend/port/pipe.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,12 @@
1010
* must be replaced with recv/send.
1111
*
1212
* IDENTIFICATION
13-
* src/port/pipe.c
13+
* src/backend/port/pipe.c
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
1717

18-
#ifndef FRONTEND
1918
#include "postgres.h"
20-
#else
21-
#include "postgres_fe.h"
22-
#endif
2319

2420
#ifdef WIN32
2521
int

src/port/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ OBJS = $(LIBOBJS) chklocale.o dirmod.o exec.o inet_net_ntop.o noblock.o \
3434
path.o pgcheckdir.o pgmkdirp.o pgsleep.o pgstrcasecmp.o \
3535
qsort.o qsort_arg.o sprompt.o thread.o
3636

37-
ifneq (,$(filter $(PORTNAME),cygwin win32))
38-
OBJS += pipe.o
39-
endif
40-
4137
# foo_srv.o and foo.o are both built from foo.c, but only foo.o has -DFRONTEND
4238
OBJS_SRV = $(OBJS:%.o=%_srv.o)
4339

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy