Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb1e65c3

Browse files
committed
Move pipe.c into the backend.
It's full of backend-specific error reporting, so it's neither possiblenor necessary for this to be used from frontend code.
1 parentb157a1d commitb1e65c3

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.crenamed 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-
#ifndefFRONTEND
1918
#include"postgres.h"
20-
#else
21-
#include"postgres_fe.h"
22-
#endif
2319

2420
#ifdefWIN32
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)

[8]ページ先頭

©2009-2025 Movatter.jp