Commit 47ce95a7 authored by Heikki Linnakangas's avatar Heikki Linnakangas

Now that much of walreceiver has been pulled back into the postgres

binary, revert PGDLLIMPORT decoration of global variables. I'm not sure
if there's any real harm from unnecessary PGDLLIMPORTs, but these are all
internal variables that external modules really shouldn't be messing
with. ThisTimeLineID still needs PGDLLIMPORT.
parent b3a1ef53
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/include/libpq/pqsignal.h,v 1.39 2010/01/16 05:52:29 tgl Exp $ * $PostgreSQL: pgsql/src/include/libpq/pqsignal.h,v 1.40 2010/01/20 18:54:27 heikki Exp $
* *
* NOTES * NOTES
* This shouldn't be in libpq, but the monitor and some other * This shouldn't be in libpq, but the monitor and some other
...@@ -21,13 +21,13 @@ ...@@ -21,13 +21,13 @@
#include <signal.h> #include <signal.h>
#ifdef HAVE_SIGPROCMASK #ifdef HAVE_SIGPROCMASK
extern PGDLLIMPORT sigset_t UnBlockSig, extern sigset_t UnBlockSig,
BlockSig, BlockSig,
StartupBlockSig; StartupBlockSig;
#define PG_SETMASK(mask) sigprocmask(SIG_SETMASK, mask, NULL) #define PG_SETMASK(mask) sigprocmask(SIG_SETMASK, mask, NULL)
#else /* not HAVE_SIGPROCMASK */ #else /* not HAVE_SIGPROCMASK */
extern PGDLLIMPORT int UnBlockSig, extern int UnBlockSig,
BlockSig, BlockSig,
StartupBlockSig; StartupBlockSig;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* Portions Copyright (c) 2010-2010, PostgreSQL Global Development Group * Portions Copyright (c) 2010-2010, PostgreSQL Global Development Group
* *
* $PostgreSQL: pgsql/src/include/replication/walreceiver.h,v 1.3 2010/01/20 09:16:24 heikki Exp $ * $PostgreSQL: pgsql/src/include/replication/walreceiver.h,v 1.4 2010/01/20 18:54:27 heikki Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -59,7 +59,7 @@ typedef struct ...@@ -59,7 +59,7 @@ typedef struct
slock_t mutex; /* locks shared variables shown above */ slock_t mutex; /* locks shared variables shown above */
} WalRcvData; } WalRcvData;
extern PGDLLIMPORT WalRcvData *WalRcv; extern WalRcvData *WalRcv;
/* libpqwalreceiver hooks */ /* libpqwalreceiver hooks */
typedef bool (*walrcv_connect_type) (char *conninfo, XLogRecPtr startpoint); typedef bool (*walrcv_connect_type) (char *conninfo, XLogRecPtr startpoint);
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/include/storage/ipc.h,v 1.80 2010/01/16 00:04:41 tgl Exp $ * $PostgreSQL: pgsql/src/include/storage/ipc.h,v 1.81 2010/01/20 18:54:27 heikki Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -62,7 +62,7 @@ typedef void (*shmem_startup_hook_type) (void); ...@@ -62,7 +62,7 @@ typedef void (*shmem_startup_hook_type) (void);
/* ipc.c */ /* ipc.c */
extern PGDLLIMPORT bool proc_exit_inprogress; extern bool proc_exit_inprogress;
extern void proc_exit(int code); extern void proc_exit(int code);
extern void shmem_exit(int code); extern void shmem_exit(int code);
......
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