Commit c30be978 authored by Robert Haas's avatar Robert Haas

Fix thinko in commit 2bd9e412.

Obviously, every translation unit should not be declaring this
separately.  It needs to be PGDLLIMPORT as well, to avoid breaking
third-party code that uses any of the functions that the commit
mentioned above changed to macros.
parent 465d7e18
...@@ -105,6 +105,8 @@ char *Unix_socket_group; ...@@ -105,6 +105,8 @@ char *Unix_socket_group;
/* Where the Unix socket files are (list of palloc'd strings) */ /* Where the Unix socket files are (list of palloc'd strings) */
static List *sock_paths = NIL; static List *sock_paths = NIL;
PQcommMethods *PqCommMethods;
/* /*
* Buffers for low-level I/O. * Buffers for low-level I/O.
......
...@@ -49,7 +49,7 @@ typedef struct ...@@ -49,7 +49,7 @@ typedef struct
void (*endcopyout)(bool errorAbort); void (*endcopyout)(bool errorAbort);
} PQcommMethods; } PQcommMethods;
PQcommMethods *PqCommMethods; extern PGDLLIMPORT PQcommMethods *PqCommMethods;
#define pq_comm_reset() (PqCommMethods->comm_reset()) #define pq_comm_reset() (PqCommMethods->comm_reset())
#define pq_flush() (PqCommMethods->flush()) #define pq_flush() (PqCommMethods->flush())
......
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