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

Commitc30be97

Browse files
committed
Fix thinko in commit2bd9e41.
Obviously, every translation unit should not be declaring thisseparately. It needs to be PGDLLIMPORT as well, to avoid breakingthird-party code that uses any of the functions that the commitmentioned above changed to macros.
1 parent465d7e1 commitc30be97

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎src/backend/libpq/pqcomm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ char *Unix_socket_group;
105105
/* Where the Unix socket files are (list of palloc'd strings) */
106106
staticList*sock_paths=NIL;
107107

108+
PQcommMethods*PqCommMethods;
109+
108110

109111
/*
110112
* Buffers for low-level I/O.

‎src/include/libpq/libpq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ typedef struct
4949
void (*endcopyout)(boolerrorAbort);
5050
}PQcommMethods;
5151

52-
PQcommMethods*PqCommMethods;
52+
externPGDLLIMPORTPQcommMethods*PqCommMethods;
5353

5454
#definepq_comm_reset()(PqCommMethods->comm_reset())
5555
#definepq_flush() (PqCommMethods->flush())

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp